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

Which command will show you free/used memory? Does free memory exist on linux?

564


How can I type in cmd?

514


What Command used to lock user password?

593


What is an os command?

569


What are the 7 types of sentences?

568






You suspect that you have two commands with the same name as the command is not producing the expected results. What command can you use to determine thelocation of the command being run?

513


How to recover /etc/passwd file and /etc/shadow file?

555


What does chmod do in linux?

550


Explain the working of command grouping?

549


What are grep commands?

547


Explain any one service which are working on udp only?

529


How lilo is useful in linux?

573


What is SFC command?

487


How do you copy in terminal?

565


How do I check my disk space?

479