[SunHELP] Ideas needed for syncronizing /etc/passwd and /etc/group uids and gids

sunhelp at sunhelp.org sunhelp at sunhelp.org
Fri Jul 25 17:46:31 CDT 2003


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



More information about the SunHELP mailing list