I lost a root password and i need to give it, I treid to
change it through single usermode even though i am not get
a password, then what is the other procedure to give a root
password?

Answer Posted / rallapalli

Enter into Single user mode and check the /etc/shadow file
is there are not if it is not there do this
#cp /etc/shadow~ /etc/shadow
now give the password
#passwd



Thanks

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is file and example?

814


Which command is used to delete a group?

731


How do you copy in terminal?

760


What is top command in linux?

694


How do you create a file?

711


How do I check my disk space?

655


What is cd command used for?

740


Explain command grouping in linux?

768


What is lsof command in linux?

789


What is clang linux?

780


What is git command?

713


what do know about commands?

816


How do I check disk space in linux?

725


please advice me what i have to prepare for NIC Exam(22-feb- 09). send me the question pattern for the 2 hrs exam. please sent it to manivannan_it15@yahoo.co.in

2115


How do you ask politely?

734