Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Hi everyone i want to learn Devops in Hyderabad can anyone please suggest me best institute.

1694


What does cd do in linux?

1215


What is the difference between clang and llvm?

1091


What is command grouping and how does it work?

1190


What is the command can be run to remove all the rules in an iptable table?

1095


What are the examples of simple command?

1173


Is llvm a virtual machine?

1053


Where is command history stored in linux?

1058


Who is unix command?

1083


Why is linux cpu usage so high?

1103


What is the difference between kill and kill in linux?

1363


What is the copy command in linux?

1036


What is command example?

1154


Explain the ‘ls’ command in linux

1147


How does case sensitivity affect the way you use commands?

1191