添加新用户

adduser 命令将用户添加到系统。要添加新用户类型:

sudo adduser <user_name>

例:

sudo adduser tom

输入上述命令后,系统将提示你输入有关新用户的详细信息,例如新密码,用户全名等。

以下是要求用户填写以添加新用户的信息:

Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for tom
Enter the new value, or press ENTER for the default
    Full Name []: Test User
    Room Number []:
    Work Phone []:
    Home Phone []:
    Other []:
Is the information correct? [Y/n] y