Paul on Thu, 8 May 2003 18:51:23 -0400


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

Re: [PLUG] Two passwd files?


Please, send it to me so I can take a look.

I did, however, create shell scripts to propagate a handful of system files, which includes some scary passwd file manipulation. Let me know if you want to see /my/ code. It does everything through OpenSSH.


Fred K Ollinger wrote:

I have code for this if anyone wants it.

It's in perl and it's a mess, but it works for my purposes.

Fred Ollinger (follinge@sas.upenn.edu)
CCN sysadmin

On Thu, 17 Apr 2003, Paul wrote:



Jeff Abrahamson wrote:



You could post-process locally with sed to change the root line:




I came up with another idea.  On the "master" system, what about
grep'ing out user account lines with UIDs 500 and above and placing them
in a serperate file called something like "passwd.shared"?  Then, copy
"passwd.shared" to the remote systems.  On the remote systems, append
the "passwd.shared" file to the "passwd.local" file to form a new passwd
file?

So, on each system, the "passwd.local" file will contain all of the
original, system specific accounts, minus any regular user accounts.
The regular user accounts will be added when "passwd.shared" is
combined with "passwd.local" to form the new passwd file.

Is that crazy?  Could all of the scripting take place on the server?

I think that approach would work for groups and hosts as well.




_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug