shibo-ubuntu@ubuntu:~$ sudo useradd karen

[sudo] password for shibo-ubuntu: 

shibo-ubuntu@ubuntu:~$ sudo passwd karen

输入新的 UNIX password: 

又一次输入新的 UNIX password: 

passwd:已成功更新password

shibo-ubuntu@ubuntu:~$ sudo mkdir /home/karen

shibo-ubuntu@ubuntu:~$ sudo chown -Rv karen /home/karen

changed ownership of "/home/karen" from root to karen

shibo-ubuntu@ubuntu:~$ sudo groupadd -g 2001 music

shibo-ubuntu@ubuntu:~$ sudo gpasswd -a karen music

正在将用户“karen”增加到“music”组中

shibo-ubuntu@ubuntu:~$ su -l karen

password: 

$ whoami

karen

$ id 

uid=1002(karen) gid=1002(karen) 组=1002(karen),2001(music)