Linux添加用户到samba数据库时出现错误的解决方法
Linux添加用户到samba数据库时出现错误的解决方法
Linux添加用户到samba数据库时出现错误的解决方法
question:
#pdbedit -a mis1
new password:
retype new passwd:
Unable to modify passwd TDB!
Error:Record exists occured while storing the main record (USER_mis1)
Error:Record exists occured while storing the main record (USER_mis1)
Unable to add user!(does it already exist?)
描述:在添加用户到samba数据库的时候,出现上述错误,解决方法?
answer:
这是因为mis1用户的密码已经存在于samba的用户数据库已经存在,一直以为我只要删除此用户(userdel mis1;rm -rf /var/spool/mail/mis1)就可以删除mis1在电脑上的一切相关的数据,但是实际上samba数据库内还是继续保存此用户的密码。
#smbpasswd mis1 //修改samba 用户的密码可用此来操作。
作者 wang509020
评论暂时关闭