Re: Adding a user's home directory

From: Bas Keur (viper_at_dmrt.net)
Date: 11/25/03


Date: Tue, 25 Nov 2003 12:12:55 +0100


: I am trying to add a daemon user with the home directory of '/var/qmail',
: however the 'adduser' utility expects a partition (eg. -home
${partition}).
: Therefore if I try to create the user account ${user} using 'adduser' and
: '-h /var/qmail'

Try `useradd` instead of `adduser`

usage: useradd [-mov] [-G group[,group,...]] [-b basedir] [-c comment]
                [-d homedir] [-e expiry] [-f changetime] [-g group]
                [-k skeletondir] [-p password] [-r lowuid..highuid]
                [-s shell] [-u uid] [-L class] user

-- 
-[ ViPER - viper@dmrt.net
-[ http://www.dmrt.net
-[ http://www.securitydatabase.net
-[ Objects in mirror no longer matter.


Relevant Pages

  • Adding a users home directory
    ... I am trying to add a daemon user with the home directory of '/var/qmail', ... Therefore if I try to create the user account $using 'adduser' and ... accounts while installing qmail unattended (and learn more OpenBSD). ...
    (comp.unix.bsd.openbsd.misc)
  • Re: mail user
    ... One linux server can only have one user account call "Peter" ... adduser peter ...
    (comp.os.linux.misc)
  • Re: Creating a New User Account
    ... > I'm new to VMS, ... > I've managed to create a new user account under VMS using: ... Where does ADDUSER think it's putting the user's directory? ... Sounds like ADDUSER is expecting the user files to be on the ...
    (comp.os.vms)
  • Modifying the /etc/skel
    ... How can modify the skel so that it adds subdirectories that are custom to each ... user account in Red Hat 9? ... but when I adduser bpfish I want to create /home/bpfish/Web/bpfish. ...
    (alt.os.linux.redhat)
  • More Questions Re Add User In Red Hat 9.0
    ... What is the path of the home directory that adduser creates for a ... What does the umask setting for a user mean? ...
    (alt.os.linux)