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

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



I just stumbled upon this:

http://www.stearns.org/moveuser/

(The site is down at the moment.) Bear in mind it does say "use with 
caution" so I don't know how well it works.

Carlson, Scott wrote:
> 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
> 
>