Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!manuel!munnari.oz.au!network.ucsd.edu!sdd.hp.com!wupost!darwin.sura.net!uvaarpa!cv3.cv.nrao.edu!laphroaig!cflatter From: cflatter@nrao.edu (Chris Flatters) Subject: Re: Adding users Message-ID: <1992Jul24.215139.26837@nrao.edu> Sender: news@nrao.edu Reply-To: cflatter@nrao.edu Organization: NRAO References: <9207241849.AA06522@nms1.abb.com> Date: Fri, 24 Jul 1992 21:51:39 GMT Lines: 30 In article AA06522@nms1.abb.com, MLUCI@fuel.abb.com (Mark Lucia 2915) writes: > I tried the following: > 1. looking for a 'adduser' etc program/script > > 2. makeing an entry in the /etc/passwd file > makeing am entry in the /etc/master.passwd file > adding the home directory in /usr > > 3. rebooting the machine after 2 The correct procedure is: 1 - Run the vipw(8) command. This will allow you to edit the password file and will automatically rebuild the master.passwd file when you exit. It may also do some other magic (I haven't looked at it too closely yet). 2 - (Optional) If you want the new user to be able to use the su command add his user name to the wheel group in /etc/group. 3 - Create a home directory for the new user. This should match the one given in /etc/passwd. It appears to be conventional to use /usr/<username> in 386BSD. Change its ownership to and group using chown(8) and chgrp(8). Unless you specified otherwise in /etc/passwd the new user's group will be staff (gid = 20). Chris Flatters cflatter@nrao.edu