- Create user
useradd [用户名字]
ex. useradd littlerock - Create password for new user
sudo passwd [用户名字]
sudo passwd littlerock
type in twice your new password - Groups!
To get the list of groups which account belong to
user@machineA$groups
sudo root group …
using usermod to modify the groups
-a append which meaning,keep the previouse group keep adding new
-G you could add list of groups you want to add. useing , to seperate the groups
user@machineA $ sudo usermod -a -G group,group1,group2 [用户名]