tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Notari, Ed" <NotariE () usa ! redcross ! org>
To: tru64-unix-managers
Subject: How to change ownership of files after recreating user with a dif
Date: Tue, 27 Jul 1999 13:02:31 +0000	[thread overview]
Message-ID: <96079058316078.tru64-unix-managers.marc@archive.invalid> (raw)

Hello managers,

First off, I screwed up!

I mistakenly deleted a users account and the files in his "home" directory.
After recreating his account with dxaccounts I restored his files from the
previous days backup.  Unfortunately when recreating his account I failed to
look through the passwd file and get his previous UID # (102), instead I let
dxaccounts choose the next UID (201).

The problem is that this user has files all over the system (rightly so in
my case) and all of them are owned by "102".  For his "home" directory it
was easy enough to do a recursive chown with his username to reset the UID#.
My question is how do I do the same through out the system?  It does not
appear that chown has this capability.  Also, I would like to clean up the
passwd file to remove the 102 entry, what would be the best way to do this
and in what order given, the first problem? 

Thanks in advance for any and all help!

Ed Notari
notarie@usa.redcross.org

                 reply	other threads:[~1999-07-27 13:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox