Adding a user's home directory
From: Pritchie (nntp2003_at_pritchie.com.nospam)
Date: 11/25/03
- Previous message: Bill Drennon: "Re: (OT) Need a mini 3 port ethernet hub"
- Next in thread: Bas Keur: "Re: Adding a user's home directory"
- Reply: Bas Keur: "Re: Adding a user's home directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: Bill Drennon: "Re: (OT) Need a mini 3 port ethernet hub"
- Next in thread: Bas Keur: "Re: Adding a user's home directory"
- Reply: Bas Keur: "Re: Adding a user's home directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|