How to create dummy user?

5,076

Per the man page, this command will create a user with no home directory, and no shell.

 useradd -M -s /bin/false <desired username>
Share:
5,076

Related videos on Youtube

Poma
Author by

Poma

MSU student

Updated on September 18, 2022

Comments

  • Poma
    Poma over 1 year

    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

    • Cylindric
      Cylindric over 12 years
      Did you even look at the manual for useradd?
    • humanityANDpeace
      humanityANDpeace over 10 years
      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.
    • Tino
      Tino about 8 years
      man useradd 2>&1 | egrep -i 'dummy|rights' | wc -l gives 0, so this is a good question!