In my linux machine, i lost /etc/passwd file
and /etc/shadow file, then how can i recover it?
Answer Posted / rallapalli
Enter into single user mode
$cp /etc/passwd~ /etc/passwd
$cp /etc/shadow~ /etc/shadow
passwd~ and shadow~ are backup files of passwd, shadow
Thanks,
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How do I permanently set ulimit in linux?
What is top command in linux?
Explain the ‘ls’ command in linux
How do I run bash on windows?
What is pwd in linux command?
What is a simple command?
What are two functions the move mv command can carry out?
How can I check the exit status of my previous command in Linux operating system?
What is Syntax of any Linux command?
What is cpu core in linux?
What is a ulimit in unix?
What command should you use to check the number of files and disk space used and each user’s defined quotas?
What language is clang written in?
What is bash history linux?
What is the programming language for linux?