1833895 Members
1827 Online
110063 Solutions
New Discussion

nis

 
jkumar
Advisor

nis

Hi,

My /etc/passwd file is corrupt How to recover the /etc/passwd ???Any Suggestion

Regards
Jai..
4 REPLIES 4
Rajeev  Shukla
Honored Contributor

Re: nis

If your system is trusted (trusted system) then you build (not straight forward) your userlist with UID and comparing with /etc/group etc.. a rough password file can be created.

But the easiest way and i am sure you would be taking backups on this machine..why dont you restore from your last backup..
jkumar
Advisor

Re: nis


Backup which i restored is a month old backup that's the problem.After that backup i have created lot of user.
Rajeev  Shukla
Honored Contributor

Re: nis

I am afraid there is no other way. You will have to apply the changes manually..unless look at the home directory and work on users with directories having UID instead of name in ownership and create all those users again.
jkumar
Advisor

Re: nis


Hi,

I have restored the old backup and I have manually added the users which r newly added.Thanks