ubuntu服务器中新建用户及设置主目录

创建用户:

sanqi@sanqi:~$ sudo adduser sun

stack@stackd:~$ sudo adduser sun
[sudo] password for stack:
Adding user sun' ...
Adding new group
sun’ (1005) …
Adding new user sun' (1005) with groupsun’ …
Creating home directory /home/sun' ...
Copying files from
/etc/skel’ …
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for sun
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y

到此就可以了

猜你喜欢

转载自blog.csdn.net/papaaa/article/details/78082928