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 the command used for search file or files for specific text?
How do you create a file in linux?
How do I check cores in linux?
How do I run a command in linux?
What does touch do in linux?
How does grep work in linux?
What does umask 077 mean?
How do I set permission to run in linux?
How do I find old commands in linux?
What is know about grep commands?
What are the basic commands in command prompt?
What is cmake in linux?
What is command line in unix?
What is command example?
What are the options of wc command?