linux虚拟机删除不用的用户
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
-
删除用户
$ userdel -rf ${username}
-
删除用户家目录
$ rm -rf /home/${username}
-
删除用户相关权限设置
$ vi /etc/sudoers
-
删除用户邮箱
$ rm -rf /var/spool/mail/${username}
-
一般上面四部就可以删除用户了,保险起见,查看passwd和group文件是否还有用户信息,有的话,一并删除掉
$ cat /etc/passwd $ cat /etc/group




A beautiful web dashboard for Linux
最近提交(Master分支:26 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)