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

How do you create a text file in linux?

1145


What is tail command in linux?

1050


How do I navigate in cmd?

999


What is the bash in linux?

1030


How do you create a file?

999


What is mkdir?

974


What is difference between egrep and grep?

942


Is llvm a compiler?

973


What does df command do in linux?

1143


Who unix commands?

1167


What is the difference between diff and cmp command in unix?

1078


What is s in permission linux?

1075


What are the options of wc command?

1046


why is the tar command used?

1071


If we transfer 100 files by ftp to remote server, how to know the files are successfully transfer or some file are not transferred?

1007