I want to create a new user to run a service on the system but don't want to have /home and other configuration files for it. Like there is a user for postgres but it doesn't have any /home directory.
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
|
By default the command useradd doesn't create home directorys, but for a daemon I recommend you also use the system option and change the shell to a non-existent one so no one can login with said account (in ssh for example):
You can see all the options with |
|||||
|
|
Try |
|||
|
|
|
try this command:
This will create a user without creating your home folder at |
||||
|
|