I want to create user with least privileges. Without home, without rights, without shell. How to do that? When I call useradd it creates user with home
1 Answer
Per the man page, this command will create a user with no home directory, and no shell.
useradd -M -s /bin/false <desired username>
useradd
?man useradd
would suffice, I can imagine that there is more involved here and actually implicitly asked for. I cannot understand the downvote.man useradd 2>&1 | egrep -i 'dummy|rights' | wc -l
gives0
, so this is a good question!