添加用戶:
ubuntu@ubuntu:/home$ sudo adduser username
出現如下的信息:
Adding user username' ...
Adding new group username' (1001) ...
Adding new user username' (1001) with group `dengyanhui' ...
Creating home directory `/home/username' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for username
Enter the new value, or press ENTER for the default
Full Name []: dahui
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
輸入如下命令:
ubuntu@ubuntu:~$ ls /home
顯示如下:
引用
username ubuntu
說明username
用戶添加成功
刪除用戶:
ubuntu@ubuntu:/home$ sudo userdel username
posted on 2009-10-22 10:21
零全零美 閱讀(3416)
評論(0) 編輯 收藏 所屬分類:
ubuntu