No Shell User

Frank Steinborn frank at ircnow.org
Tue Jan 31 14:26:49 PST 2006


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



More information about the freebsd-questions mailing list