Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | 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