skip to main |
skip to sidebar
sudo adduser 用户名(这个命令会建立文件夹到home下,而且会有更多的信息输入)
sudo usermod -L 用户名 #锁定用户(L表示lock)
sudo usermod -U 用户名 #解锁(U表示unlock)
或:
sudo passwd -l 用户名 #锁定用户(l表示--login NEW_LOGIN)
sudo passwd -u 用户名 #解锁(u表示uid,new UID for the user account)
sudo usermod -G sudo -a 用户名
(G表示--groups 即force use GROUP as new primary group。-a 表示append即append the user to the supplemental GROUPS)
sudo deluser 用户名
passwd
sudo passwd 用户名
sudo chfn userid(chfn - 改变你的finger(指纹)讯息,即表示修改此用户的信息,change finger的简写)
su 用户名
sudo -s
主页