[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SAGE] Looking for reuse: Script to change users UID, change group GID & re-permission files on large scale



Hey all, I'm looking for some script reuse assistance from the group.
 
We've created an opportunity (!!) within my company here that I need to
renumber (read UID and GID's) approximately 3000 UNIX accounts across 2000
aix/solaris/redhat machines.
 
Rather then spend time writing sets of scripts to do this, or worry if I got
my find parameters right, I'm hoping that someone out there will have this
exact thing sitting in their script repository.  Anyone care to share
anything that has worked miracles for them when they've renumbered accounts
in this manner?
 
I'll be either running this script from a central management node or on each
server individually and I can provide
 
<servername> <userid> <gid> <newuid> <newgid>
 
with this info, /etc/passwd, /etc/group and all associated file permissions
would need to be changed for a user, and then likewise for GID changes.
 
Any takers/sharers ?
 
Thanks everyone,

Scott Carlson
"You might not get what you want, but if you look, you may get what you
need."

Technical Director - Technology Infrastructure Services, Availability
(v) 602-977-4456 (p) 888-603-5865
Warning: All email sent to this address will be received by the Charles
Schwab email system and is subject to Archival and review by someone other
than the recipient