*BSD News Article 86096


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!newsfeed.internetmci.com!news.infi.net!none
From: none@domain.com (Jeremy Williams)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: Why no addusr?
Date: Thu, 02 Jan 1997 19:53:55 -0400
Organization: Jeremy's World
Lines: 18
Message-ID: <none-ya023480000201971953550001@news.infi.net>
References: <none-ya023480001912962244220001@news.infi.net> <mason-ya023380002012960019340001@news.four.net> <none-ya023480002012962112290001@news.infi.net> <x7zpz8wnxt.fsf@dumbcat.codewright.com> <3a13e94547@emw4maba.slip.gp.fht-esslingen.de>
NNTP-Posting-Host: pa6dsp2.roanoke.infi.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-No-Archive: Yes
X-Newsreader: Yet Another NewsWatcher 2.3.4
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.netbsd.misc:5053

Markus

I think you've got some great ideas.  As far as the adduser thing...my
suggestion is this:

(I'd do it myself, but I have no programming experience at all)

1. Have a directory (maybe /etc/skel) that has a few default files like 
   .login et al
2. Have a file in that directory called .default_config that has info like
where 
   the home dir for each user should be created, and a default group & 
   permissions info for new users
3. a simple binary that takes a username as an argument and creates the folder 
   and adds the user to the system, creates the appropreate files and 
   directories, and then executes chpass with the username.

Is that reasonable?