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 / 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


Please Help Members By Posting Answers For Below Questions

How do you check which file consuming more space in linux?

943


What is the command to see on which port which service is running? And what is the difference between /etc/services file and net stat command?

933


What make install does?

887


What is s in permission linux?

984


You issue the command head * what would the resulting output be?

913


What does bash stand for?

991


You wish to print a file ‘draft’ with 60 lines on a page. What command would you use?

1042


How do I search bash history?

829


Explain trap command of linux?

989


What is #!/ Bin sh?

946


Explain about sh?

938


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?

995


What is cpu utilization linux?

965


you wish to create a link to the /data directory in bob's home directory so you issue the command ln /data /home/bob/datalink but the command fails. What options hould you use in this command line to be successful.

929


What command should you use to check the number of files and disk space used and each user’s defined quotas?

1037