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
Asked
Active
Viewed 5,588 times
1
-
3Did you even look at the manual for `useradd`? – Cylindric Dec 16 '11 at 16:33
-
I like the question. Even if some assume the problem so simple that a `man useradd` would suffice, I can imagine that there is more involved here and actually implicitly asked for. I cannot understand the downvote. – humanityANDpeace Dec 17 '13 at 11:49
-
`man useradd 2>&1 | egrep -i 'dummy|rights' | wc -l` gives `0`, so this is a good question! – Tino Mar 16 '16 at 10:42
1 Answers
9
Per the man page, this command will create a user with no home directory, and no shell.
useradd -M -s /bin/false <desired username>

Bill B
- 591
- 2
- 4