1. 用root登录到服务器:


2. 添加用户:

adduser yourusername

3. 会提示一些进度信息,比如说创建home文件夹,创建新组等,如下:

Adding user 'yourusername' ...
Adding new group `yourusername' (1000) ...
Adding new user `yourusername' (1000) with group 'yourusername' ...
Creating home directory `/home/yourusername' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:

4. 收入密码后,会让你填写一些用户信息,可以留空:

passwd: password updated successfully
Changing the user information for shuspieler
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

4. 加入sudo组:

adduser yourusername sudo


Adding user 'yourusername' to group `sudo' ...
Adding user yourusername to group sudo

6. 可以用新用户登录了。

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.