[KLUG Members] Time to rebuild

Bruce Smith members@kalamazoolinux.org
01 Sep 2003 14:53:28 -0400


> > Don't reformat /home and you should be fine on all above accounts.
> 
> Okay, question on this: if everything EXCEPT /home is reformatted, are
> account names lost? 

Yes.

> Is there a 'best' way to restore them if this is the case? 

Save /etc/passwd & /etc/shadow somewhere (floppy, CDR, /home, other PC)

If you don't have a lot of accounts, you can copy/paste them back.
(the two files are just text files you can edit, but be careful! :)

Or you can edit out all the system accounts and append them to the new 
/etc/passwd & /etc/shadow files.

--------------------------------------------
Bruce Smith                bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan  49093  USA
http://www.armstrong-intl.com/
--------------------------------------------