linux adduser deluser用法

sudo adduser jack001

adding user `jack001` ...

adding group `jack001` ... 

adding nw user `jack001` with group `jack001` 

Creating home directory `/home/jack001`

copying files from `/etc/skel`

Enter new UNIX password: 

Retype new UNIX password: 

and then, the follow info can leave the blank.

 

when use the adduser, the default group is the new group that create with your user nam.

you can change the group by follow command

sudo adduser  jack001 root(or other you used )

 recommend group is root & sudo

 

when you want del the user, you can use deluser command.

sudo deluser jack001 -r

option r is ambiguous(remove-all-files, remove-home)

 

 

 

你可能感兴趣的:(linux)