From: mfrankow@hamline.edu (Mike Frankowski) Subject: Re: USERADD won't accept new user Date: Sun, 28 Mar 1993 08:20:37 GMT
Stephen Thompson (Stephen.Thompson@f700.n170.z1.fidonet.org) wrote:
: First I created the users directory in /home with mkdir /home/tray
: then I added the user with something like this:
: useradd -g 5000 -u 5020 -s /bin/bash -d /home/tray tray
: I don't exactly remember the -s and -d flags (they are probally a
: but the -s is suposed to be the flag that means which shell the user
: wants and the -d should be the flag that says what home directory they
: are to use.
: After adding the user you need to chown and chgrp his home dir
: like this:
: chown 5020 /home/tray
: chgrp 5000 /home/tray
: then I had to set the users password like this
: passwd tray
: <some password>
: All this has to take palce at root level and It seams to work fine
: I used the strange group number (5000) because the user has logins on
: other machines and I wanted to preserve the numbers from them.
Okay, this is the hard way of doing it.
try doing this:
useradd -g 5000 -u 5020 -s /bin/bash -d /home/tray -m tray
---
The -m flag will create the directory and set the permissions correctly for
the newly created home.
Mike