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 run a .sh file in linux?
Who whoami linux?
What is the use of ls command?
What is env command in linux?
What does r mean linux?
Brief about finger username?
What are linux commands useful?
What does cd do in linux?
How commands work in linux?
How do you do nslookup?
what is the roles and responsibilities in linux system admin having 2yrs exp..?
How do I check disk space in bash?
What is the difference between locating and locate command?
Which command would you use if you want to remove the password assigned to a group?
How do I clear terminal command history?