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

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Dazed_75
Date:  
To: Main PLUG discussion list
Subject: Re: How to properly re-establish users after a reinstall?
This seems a quite painful process where one would have expected the install
process to work properly as long as his install specified the proper
partitioning and users and without formatting the existing /home which was a
separate partition. The only reason I can imagine for it not working is if
the install was not smart enough to associate the same uid and gid for the
user directories already in /home with the users it was creating in the new
/etc/passwd.

Am I expecting too much? Is there a legitimate reason for not doing so?

On Mon, Apr 20, 2009 at 7:53 PM, 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 *
>
> On 4/20/09, Josef Lowder <> wrote:
> > Thanks Craig. I can't imagine how this could have come about
> > as I know that hda7 was originally specified as just "/home"
> >
> > But I really appreciate your response and guidance.
> >
> > On 4/20/09, Craig White <> wrote:
> >> it appears that you have mounted /dev/hda7 as /home/joe rather than
> >> just /home
> >>
> >> if you haven't created anything else (i.e., users, in /home, you could
> >> probably just change the mount point in /etc/fstab and
> >> 'umount /home/joe' and 'mount -a' and everything would be fixed. You
> >> would of course want users named joe and patti and if you haven't
> >> already created them, you could figure out which uid number they had
> >> previously...
> >>
> >> ls -ldn /home/joe/*
> >>
> >> and their user & group numbers from your old system should be
> displayed.
> >>
> >> Then you could create them again with a 'useradd' command like,
> >>
> >> useradd -u 501(or ??) -g 501(or ??)
> >>
> >> type 'useradd --help' for information.
> >>
> >> 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
> >>
> >>
> > ---------------------------------------------------
> > PLUG-discuss mailing list -
> > To subscribe, unsubscribe, or to change your mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >
>
>
> --
> www.obnosis.com (503)754-4452
> "Contradictions do not exist." A. Rand
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>




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