零全零美(www.zzgwt.com)
生活中的很多事情,并不像If...Else那么简单!
posts - 96,comments - 52,trackbacks - 0

添加用户

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 零全零美 阅读(3406) 评论(0)  编辑  收藏 所属分类: ubuntu

只有注册用户登录后才能发表评论。


网站导航: