Table of Contents Previous Chapter Adding new users.
Steps involved (usually automated).
- Determine login name, user ID (UID), group ID (GID) & netgroup (if using NIS or NIS+)
- Enter data in /etc/passwd file
- Assign password
- Set account parameters (e.g., password aging, account expiration, quotas)
- Create home directory
- Copy initialization files
- Set file ownerships and protections (use chown, chgrp, chmod commands)
- Add user to other facilities (quota system, aliases file)
- Perform other site-specific initialization tasks
- Test new account
logname:passwd:uid:gid:user info:home:shell
group:passwd:gid:members
One of the best algorithms to use is to take two non-related words, separate them with a punctuation character, mix in some upper-case characters, and perhaps reverse one of the words. E.g.,
- DOg.tenT (mixed upper/lower case)
- t00l%p0nd (zeros instead of "O")
- p33l*BOARd (substitute numeric for alpha)
- tned-Pile (reversed first word)
- C shell: .cshrc, .login, .logout, /etc/cshrc,/etc/cshrc.std
- Borne shell: .profile, /etc/profile,/etc/profile.std
- Skeleton files: in /usr/skel, /etc/skel, or/etc/security directories
- sysadm (System V)
- passmgmt (System V)
- useradd (System V.4)
- adduser, addgroup (Some BSD, OSF/1)
- SMIT (AIX)
- nu (NeXTStep)
- Public domain scripts
- Remove or modify entry in /etc/passwd
- Remove entry in NIS/NIS+ maps
- Remove $HOME/.rhosts files
- Remove mail spool file
- Remove from mail aliases file
- Remove any cron or at jobs
- Remove directory
- "Developing Common Login Scripts," Dinah McNutt, Unix Review, December 1995, p73. (includes sample .profile file for the Korn shell)
Table of Contents Next Chapter