Adding a user's home directory

From: Pritchie (nntp2003_at_pritchie.com.nospam)
Date: 11/25/03

  • Next message: Bas Keur: "Re: Adding a user's home directory"
    Date: Tue, 25 Nov 2003 10:52:20 -0000
    
    

    Hi,

    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'

    it creates "/var/qmail/${user}",

    at the moment the best solutions I have is using

    # adduser -batch qmaild nofiles qmaild ${user_password} -shell
    nologin -unencrypted

    and then editing the passwd database with 'vipw' later...
    but this is OpenBSD, I am sure there's a better way in doing it in a
    batch.... ;o)

    Just so it's clear, I am trying to create script which creates all these
    accounts while installing qmail unattended (and learn more OpenBSD).

    Thanks
    SJP

    Thanks for any help in advance.


  • Next message: Bas Keur: "Re: Adding a user's home directory"

    Relevant Pages

    • Re: 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 ... Try `useradd` instead of `adduser` ...
      (comp.unix.bsd.openbsd.misc)
    • Re: "his myspace"? "my myspace"?
      ... Windows equivalent of a home directory on a UNIX system. ... I maintain that when a single computer is being shared by multiple users - say, a family, as mentioned above (each family member having a separate user account) - it helps keeping things separated and straight. ... Even in the case of a hopelessly disorganized user I'd rather their disorganization is confined into a single folder, instead of all over the place. ...
      (alt.usage.english)
    • Mapping Home Directory using custom GINA - Disconnected Network Drive
      ... For a given user a home directory may be defined in their user account ... "profile" of their Active Directory account properties. ... I am trying to map this home directory in a custom GINA. ...
      (microsoft.public.platformsdk.security)
    • Re: How do I create a locked down user account with only access to Ping?
      ... > I want to create a User Account that does something similar to the ... Ideally they wouldn't have a home directory. ... shell script that only allows a user to execute ping. ...
      (comp.unix.solaris)
    • Re: [SLE] What did I do wrong? or is this a bug?
      ... first rename the existing users login from rfs to rfsx>> without ... changing the home directory, then created a new user with the>> ... login name was abandoned by one user account, ...
      (SuSE)