From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079058316078.tru64-unix-managers.marc@archive.invalid> From: "Notari, Ed" Date: Tue, 27 Jul 1999 13:02:31 +0000 To: tru64-unix-managers Subject: How to change ownership of files after recreating user with a dif X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079058316078 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