Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2006 23:26:44 +0100
From:      Frank Steinborn <frank@ircnow.org>
To:        Sean Murphy <smurphy@calarts.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: No Shell User
Message-ID:  <20060131222644.GA86369@scott.blazing.de>
In-Reply-To: <43DFB664.9010403@calarts.edu>
References:  <43DFB664.9010403@calarts.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Sean Murphy wrote:
> I need to create a user with no login or home directory abilities.
> It just needs to own a few directories and files and be able to
> run a daemon. would I use pw or adduser and what would be the
> options for that command?

Just set the users shell to /sbin/nologin and his home-directory to
/nonexistent. The home-directory could be anything else i think, just
make sure it doesn't really exist. FreeBSD's nobody user uses
/nonexistent, though.

Frank




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060131222644.GA86369>