在Ubuntu 系统中如何添加用户
在Ubuntu中添加用户使用命令:
# adduser sun
root@karat:~# adduser sun
Adding user `sun' ...
Adding new group `sun' (1000) ...
Adding new user `sun' (1000) with group `sun' ...
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
root@karat:~#
添加输入添加用户之后,然后为用户输入新的密码,后面的操作采用默认的方式,最后输入 Y。操作完成。

现在表示添加完成。
将用户添加到sudo组
usermod -aG sudo sun