In my linux machine, i lost /etc/passwd file
and /etc/shadow file, then how can i recover it?
Answer Posted / anil kumar
1. reboot
2. singal user mode (init=/bin/bash)
3. pwconv
4. check /etc/passwd and /etc/shadow files are there
5. sync
6. init 3
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain difference between nfs soft and hard mouniting points?
What is the pwd command?
What does chmod 644 do?
How do I stress test my cpu?
How do I test my cpu speed?
What is the export command used for?
How to know linux os is 32 bit or 64 bit?
Write a command that will do the following: -look for all files in the current and subsequent directories with an extension c,v -strip the,v from the result (you can use sed command) -use the result and use a grep command to search for all occurrences of the word orange in the files.
How do I move to root in linux?
You have a tab delimited file called phonenos and want to change each tab to four spaces. What command can you use to accomplish this?
I am using RedHat 6.3 in I wanna to install and configure zimbra mail. Can anybody tell me what are the RPM packages required for zimbra mail ? Where can I get those RPM packages ?
Which command is used to terminate a process?
How do I get to root directory in linux?
How do I find command history in linux?
Which command would you use to create a file system on a new hard drive?