这样的user没有home directory,不会在login页面显示。
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):
sudo useradd -r -s /bin/false USERNAME
You can see all the options with man useradd and man groupadd if you want to create a group for the user too.
如果想为这个帐号设一个密码可以这样:
sudo passwd user_name
这种user account其实没法login,所以没什么用。
阅读(729) | 评论(0) | 转发(0) |