Ron -- ...and then Ron Powell said... % % I was recently reading Linux Administrators Handbook (by the same folks who % wrote Unix System Administrators Handbook) and it mentioned that you could
Do you mean Nemeth/Seebass/Snyder/Hein? If so, it's probably a very good book; their UNIX SA's book (in 3rd edition, last I saw) is excellent. % write a perl script to add users, set their passwords, etc. Yep. You could do it in shell, perl, python, or just about anything, I imagine. % % The question is, could someone point me to a faq (faq only, please - I'm % keen to try it myself first) containing the appropriate information? % Originally, I was going to write a shell script that used "expect"... but % I'd much rather use perl for it. That one could be tough. The really best way is to know how to add a user manually (without going through some GUI, like Solaris's AdminTool); once you have those steps (create the passwd file entry with login name, unique UID, proper GID, full name info, home directory, shell; set the password; create the home directory and assign ownership; anything else you do like perhaps update automount tables and so on) down to the point where you're tired :-) of doing them by hand, you can then automate the process by putting it all in a script. Thus, you should probably go back to your LAH and read up on what it has to say about adding users, and see if there is a "useradd" or "adduser" or similar script provided (what flavor of Linux are you using?) to see what it does (it might be quite sufficient), and then you'll have an idea of what you want your Cool Script to do for you. % % ---------- % Ron Powell % Senior IT Analyst & % Network Administrator % gomembers, Inc. (Baltimore Office) % [EMAIL PROTECTED] % 410-494-1600 x4058 HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg24559/pgp00000.pgp
Description: PGP signature