[Techtalk] creating a system user with no privileges

Devdas Bhagat devdas at dvb.homelinux.org
Fri May 21 23:09:17 EST 2004


On 20/05/04 09:12 +0000, Conor Daly wrote:
<snip>
> Isn't that what user 'nobody' is for?
nobody is for NFS mounts.

> grep nobody /etc/passwd /etc/shadow
> /etc/passwd:nobody:x:99:99:Nobody:/:
> /etc/shadow:nobody:*:11414:0:99999:7:::
> 
> No home dir (well, '/' but no permissions on it), no shell, no login.  Now,
A no shell entry defaults to /bin/sh (at least, it used to)
<snip>
> useradd -d / -s /bin/false -u <xx> <name> 

Devdas Bhagat


More information about the Techtalk mailing list