Centos7.3实践:删除用户后,重新添加用户失败

删除用户ftp123后,重新添加用户ftp123失败,显示:

useradd: warning: the home directory already exists.

Not copying any file from skel directory into it.

Creating mailbox file: File exists

解决方案:

userdel ftp123

rm -rf /home/ftp123

rm -rf /var/spool/mail/ftp123

useradd ftp123

passwd ftp123

输入密码两次,成功

猜你喜欢

转载自blog.csdn.net/qq_38329988/article/details/80649049