查看samba服務器中已擁有哪些用戶:pdbedit -L
其他操作用法:
- 刪除samba服務中的某個用戶:smbpasswd -x 用戶名
- 查看Linux中所有用戶:cat /etc/passwd
- 查看Linux中添加了多少用戶:cat /etc/passwd|grep -v nologin|grep -v halt|grep -v shutdown|awk -F":" '{ print $1"|"$3"|"$4 }'|more
- 查看Linux中所有組:cat /etc/group
- 刪除linux某個用戶:userdel 用戶名
- 刪除linux中某個用戶所有信息:userdel -r 用戶名