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
How do I overclock my cpu?
Explain difference between swap partition and swap file?
You read an article that lists the following command: dd if=/dev/fdo bs=512 of=/new what does this accomplish?
What are grep patterns called?
What will happen when a system call is encountered in a user program?
List the three main parts of an operating system command?
How much ram do I have linux?
What does wc command do in unix?
How do I find my user id in linux?
What is umask 000?
Explain shift command of linux?
tell me something about linux commands.
What does mkdir mean in linux?
What is command grouping and how does it work?
Is cmake a compiler?