SUMMARY: Changing a users UID

From: Dave Martini <martini_at_mrpeabody.llnl.gov>
Date: Fri Mar 03 2006 - 14:00:40 EST
Thanks for the replies looks like you have to byte the bullet on this one!

Run any of these commands to walk a dir tree and change UID.

find / -user <user id> -exec chown -h username {} \;
find / -user <old UID> -exec chown <new UID> {} \;


Below is my original question

Solaris 9 NIS+ need to change the UID for a bunch of users.
  From past experience I've had to change the UID on the NIS+ server then
walk the directory tree on all of my Solaris systems and find the
locations of all of the users files and do a chown. Is there an easier
way? Will also need to change a users username and in the past have had
to do that same as the UID which is a pain.

Thank You.

Dave Martini
LLNL
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Mar 3 14:01:07 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:56 EST