Re: How to properly re-establish users after a reinstall?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: Main PLUG discussion list
Subject: Re: How to properly re-establish users after a reinstall?
On Mon, 2009-04-20 at 19:53 -0700, Lisa Kachold wrote:
> Looks like your /home partition was being equated as /hda7 - which makes sense.
>
> umount /dev/hda7
> mkdir /home
> mount -t ext3 (or whatever it is) /dev/hda7 /home
> df -k
> vi /etc/passwd
> ls -al ~joe
> ls -al ~pattie
>
>
> You can change the mount point via /etc/fstab
> You can change the users home via /etc/passwd
> Be sure to chown/chgrp all the files to their corresponding users
>
> cd ~joe | chown -R joe:joe *
> cd ~pattie | chown -R pattie:pattie *

----
just a comment...I don't generally recommend to people to directly
edit /etc/passwd, /etc/group, /etc/shadow (even with vi) just because
the problems caused by a careless edit are truly vexing. Perhaps that is
one way people can learn but it is not the thing to do for the most
users.

Craig


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss