From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078694111411.tru64-unix-managers.marc@archive.invalid> From: Henry Azer Date: Wed, 18 Feb 1998 15:33:14 +0000 To: tru64-unix-managers Subject: Summary Adduser Script X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078694111411 Many thanks to the following individuals that responded: Richard.Beebe@yale.edu phwatso@cooper-energy-services.com lucio@ifctr.mi.cnr.it tpb@zk3.dec.com warren@atmos.washington.edu rogerguy@aquinas.edu The location for the adduser script can be found through: which adduser In our case that is /usr/sbin/adduser. Yes it can be edited it was fairly simple. Original Comments: It's a script. You can modify it. If you decide to run enhanced (C2) security, you'll need to set up profiles, but the C2 software does this nicely. If you do modify adduser and then later do an installupdate to get to a newer version, be sure to save aside a copy of your modified script so you can merge in any changes. It's not necessarily something a system update will have expected you to change, so it is likely to get replaced by a new one when you update. As root, try "which adduser". On my system, it's in # which adduser /usr/sbin/adduser Tom I've personally never used such sort of scripts to configure our accounts. I do not like the idea of being "coached" by a piece of s/w which today I can have under a particular OS, and tomorrow could not be available on another OS (we have mixed Unix flavours). I prefer to manage accounts manually, after all it is pretty easy : - edit file "passwd" and add an entry for the user, without password (local passwd or NIS master passwd, in latter case cd /var/yp and make passwd) - create user home directory (and optional other directories, there was a time here each user had a directory on two disks) - chown such directory to the user - log on as the user, and populate the home directory with standard .cshrc .login (or .profile) etc. (you may want to write a custom script for this) - while logged in as the user assign a password, or have hir do it. - eventually make an entry for the user in /etc/aliases (or NIS equivalent and make) to specify where mail for the user has to be delivered (mailbox will be created automatically) ---------------------------------------------------------------------------- Lucio Chiappetti - IFCTR/CNR - via Bassini 15 - I-20133 Milano (Italy) Yes you can do this, I copied the file to my local directory and called it myadduser. -- Regards, Paul Watson - CAD Systems Supervisor Cooper Energy Services, Liverpool, UK. You can almost always find out where a command lives with the 'whereis' command. On my machine 'whereis adduser' returns /usr/sbin/adduser. If you look at that file you'll see that it's just a ksh script. Edit away. _______________________________________________________________________ Rick Beebe (203) 785-4566 Network Engineering Manager FAX: (203) 737-4037 ITS-Med Technology Operations Richard.Beebe@yale.edu Yale University School of Medicine P.O. Box 208089, New Haven, CT 06520-8089