In my linux machine, i lost /etc/passwd file
and /etc/shadow file, then how can i recover it?
Answer Posted / inam
Recovery of passwd & shadow file
-write on kernel line "init=/bin/bash
-Press enter
-Press b
copy /etc/passwd- /etc/passwd
then use command
pwconf to regenerate shadow from passwd.
u can change password of ur user until u create shadow.
after all these changes just change ur user password with
-passwd username.
( i post one before but it has some mistake)
this opne will work try out
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is ulimit command?
What is the gcc command?
What does umask 022 mean?
How many cmd commands are there?
How lilo is useful in linux?
In order to improve your system’s security you decide to implement shadow passwords. What command should you use?
Which of the following tasks cannot be accomplished with the touch command?
Explain about the command elm?
The command ‘umask -S’
How do I check dns entry?
How can I delete a file in linux?
How do I permanently set ulimit in linux?
Suppose 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 otherprocedure to give a root password?
What does uname do in linux?
How often do you use grep command and how in Linux operating system?