$ su - Password: #
# userdel -r username
The –r option removes the account from the system.
因为用户起始目录现在是 ZFS 数据集,所以,要为已删除的用户移除本地起始目录,首选方法是随 userdel 命令指定 –r 选项。
# userdel username
有关命令选项的完整列表,请参见 userdel(1M) 手册页。
接下来的步骤
如果您删除的用户具有管理职责(例如创建 cron 作业)或该用户在非全局区域中具有其他帐户,则可能需要执行额外的清除操作。