是否可以将您的登录密码与您的samba密码绑定在一起?
理想情况下,用户每30天需要更改一次密码才能登录到计算机,如果可能的话,当他们更新密码时,它还会更新samba密码。
我相信默认情况下,Samba的配置是这样的,这是相关的行smb.conf
:
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = user
...
# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = yes
有关这些选项的更多信息,请点击此处。希望能有所帮助。
编辑:
第一次添加linux用户(adduser
)时,还需要将其添加到smbpasswd中。
sudo smbpasswd -a <user>
当提示您输入密码时,请使用与adduser相同的密码。之后,当您使用更改linux密码时,smb密码应自动更新。sudo passwd <user>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句