Ideas needed for syncronizing /etc/passwd and /etc/group uids and gids

From: Lumpkin, Buddy (Buddy.Lumpkin@nordstrom.com)
Date: Fri Jul 25 2003 - 18:45:33 EDT


Hello All,

We have a few hundred systems that all share a common /etc/passwd and
/etc/shadow file. Recently we have inherited a couple pre-existing systems
that have common usernames and groups with different uids and gids. This is
especially a consern for usernames like oracle.

I can certainly cook something up that will convert all of the files on these
systems before/after putting in the new /etc/passwd and /etc/group files but I
was wondering if anyone had already done this and already had some good ideas
on how to tackle this with minimal pain.

I was thinking about benchmarking a quick and dirty shell script on one of our
lab systems but im scared that I might find that this is going to take hours
unless I write something in perl or C that only iterates thru each file on the
system once (one stat() per file).

Thanks in advance for any ideas,

--Buddy
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:49 EDT