login
Header Space

 
 

another adduser utility available

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Date: Monday, August 10, 1992 - 12:40 pm

In article <1992Aug9.235619.15106@muddcs.claremont.edu> jwinstea@jarthur.claremont.edu (Jim Winstead Jr.) writes:
[..]

This may touch off a flood of 'adduser's, but I uploaded mine anyway.
I put it on:
        banjo.concert.net: /pub/Linux/Incoming/adduser.tar.Z
        tsx-11.mit.edu: /incoming/adduser.tar.Z

It seems that tsx-11's incoming directory is now readable, so you can get
it there before it moves.

Mine is in the 'crude' category: a simple shell script and a C program.  It
works best if almost all of the new accounts are very similar (home dir
is /home/username, default shell, etc) but it isn't hard to make a second
script for a different class of users' defaults.  Here's a bit of the README:


Adduser - tool for adding new users to the system

This package consists of two programs, mkpwent and adduser.  The first is a
C program which simply puts a new entry into /etc/passwd.  You have to
supply all the values on the command line, and it does a few simple checks
to make sure the login shell exists and is executable, for example, then writes
a new /etc/passwd file, backing up the old one in /etc/passwd.OLD.

The second program, adduser, is a (BASH) shell script which has all the system-
dependent bits encoded in it.  Essentially what it does is call mkpwent
and then create all the directories and miscellaneous files required in
setting up a user account.  It is intended to be straightforward to modify
the shell commands after the mkpwent program succeeds for individual systems.





-- 
Steve Robbins  --  steve@nyongwa.cam.org
Pretend to spank me -- I'm a pseudo-masochist.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
another adduser utility available, Steve M. Robbins, (Mon Aug 10, 12:40 pm)
speck-geostationary