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 does ls mean in linux?
Why is linux cpu usage so high?
What does r mean linux?
Explain about the command elm?
What is clang llvm?
What is the use of man command in linux?
What is the copy command in linux?
What is clang linux?
What is phony in makefile?
What is the difference between locating and locate command?
What is the command can be used to check for file corruption?
Explain the free command.
What language is clang written in?
What do you mean by directory?
What will happen when a system call is encountered in a user program?