Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Email

8.2. 删除用户

rmuser 命令

root@freebsd:~ # pw adduser test
root@freebsd:~ # rmuser test
Matching password entry:

test:*:1002:1002::0:0:User :/home/test:/bin/sh

Is this the entry you wish to remove? y
Remove user's home directory (/home/test)? y
Removing user (test): mailspool home passwd.
		

pw userdel 命令

root@freebsd:~ # pw adduser test
root@freebsd:~ # pw userdel test
		
# pw userdel -n tom -r