Home | Mirror | Search | ITEYE 博客 | OSChina 博客 | 51CTO 博客

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
		
comments powered by Disqus