This one time, at band camp, Campbell McLeay wrote:
>Hi,
>
>Was wondering whether there is a general format for adding a 'system' 
>user, i.e., one that just needs to run a daemon. Can you just edit the
>passwd and shadow files or should you use the 'useradd' facility? 
>Does it really need a shell? Or is it safer to just use e.g., /bin/false?

adduser --system foo

man adduser

You can set all the options for the daemon user from the command line.

It's common practice to make the daemon user's home directory the
location of the daemons's var data, and set the shell to /bin/false.

-- 
[EMAIL PROTECTED]                           http://spacepants.org/jaq.gpg
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to