Without a home directory
sudo useradd myuser
With home directory
sudo useradd -m myuser
Then set the password
sudo passwd myuser
Then set the shell
sudo usermod -s /bin/bash myuser
Without a home directory
With home directory
Then set the password
Then set the shell
|
|||||||||
|
------------------------
http://stackoverflow.com/questions/38288/how-do-i-add-a-user-in-ubuntu
原文:http://www.cnblogs.com/oxspirt/p/6294856.html