By the company winning business from another outsource provider, I've suddenly inherited towards 300 servers and all accounts are local.
One of the immediate tasks is to set up all the OS, DB, and app support staff on all of the servers operating systems. I've slapped together a crude script for the RHEL servers that needs a little tweaking dependant on the release and it reads an input file that contains the user ids, what to put in the comments, groups etc. It also reads the password I've set in the file and uses
chpasswd to push that in without me keying them (twice) for each user on each server.
All well and good, but now the servers being looked at are AIX 6 & Solaris 8 I think - it reports as 5.8 on
uname (I'm only certified on Solaris 2.6
) and haven't had one for many years. Do either of these have a similar function to
chpasswd that I can exploit with a script with? There is no
expect though. I do recall that there is the
crypt on Solaris that I could possibly use somehow.
The only other option I can think of is to set them all up on one server, then copy the encrypted password to all the others, but then I'd have to directly edit
/etc/shadow or
/etc/security/passwd and I'd prefer not to. If I have to do so, then naturally it will be against a copy that I can then switch in.
On Solaris, I've found
putspent, but that requires C-code wrapping around it and I have almost nil experience.
Any pointers welcome. I'm happy to do the leg work if it's a rather terse tool - preferably not in C, but I will take any help I can get!
Thanks, in advance,
Robin