Samba和用户帐户密码
是否可以将您的登录密码绑定到您的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
提示输入密码时,请使用与adduser 相同的密码。 在此之后,当您使用sudo passwd
更改linux密码时,应自动更新smb密码
要让更新的unix密码也是新的samba密码,您必须安装libpam-smbpass
软件包。