[opensuse] How let users change their Samba password?
Hi, I installed 12.1 and let a user login by ssh. Now he should be able to change his password for Samba with smbpasswd. smbpasswd asks for the old and 2 times for a new pw and then comlaines that there cant be a server reached on 127.0.0.1 which is more or less expected since Samba's interface is eth0. With root the command "smbpasswd someusername" works as expected, though. The docu states that the loop-back 127.0.0.1 shouldn't be entered in the interface list. So how is it planned to let users change their pw without giving them root access? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2/7/2012 11:31 AM, Andreas wrote:
Hi, I installed 12.1 and let a user login by ssh. Now he should be able to change his password for Samba with smbpasswd. smbpasswd asks for the old and 2 times for a new pw and then comlaines that there cant be a server reached on 127.0.0.1 which is more or less expected since Samba's interface is eth0.
With root the command "smbpasswd someusername" works as expected, though.
The docu states that the loop-back 127.0.0.1 shouldn't be entered in the interface list.
So how is it planned to let users change their pw without giving them root access?
If you set Bind interfaces only = yes you will run into this problem documented in smb.conf(5): If bind interfaces only is set then unless the network address 127.0.0.1 is added to the interfaces parameter list smbpasswd(8) and swat(8) may not work as expected due to the reasons covered below. To change a users SMB password, the smbpasswd by default connects to the localhost - 127.0.0.1 address as an SMB client to issue the password change request. If bind interfaces only is set then unless the network address 127.0.0.1 is added to the interfaces parameter list then smbpasswd will fail to connect in it's default mode. smbpasswd can be forced to use the primary IP interface of the local host by using its smbpasswd(8) -r remote machine parameter, with remote machine set to the IP name of the primary interface of the local host. so: Check that you have: Bind interfaces only = no -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 07.02.2012 22:02, schrieb John Andersen:
On 2/7/2012 11:31 AM, Andreas wrote:
Hi, I installed 12.1 and let a user login by ssh. Now he should be able to change his password for Samba with smbpasswd. smbpasswd asks for the old and 2 times for a new pw and then comlaines that there cant be a server reached on 127.0.0.1 which is more or less expected since Samba's interface is eth0.
With root the command "smbpasswd someusername" works as expected, though.
The docu states that the loop-back 127.0.0.1 shouldn't be entered in the interface list.
So how is it planned to let users change their pw without giving them root access?
If you set Bind interfaces only = yes you will run into this problem documented in smb.conf(5):
If bind interfaces only is set then unless the network address 127.0.0.1 is added to the interfaces parameter list smbpasswd(8) and swat(8) may not work as expected due to the reasons covered below.
To change a users SMB password, the smbpasswd by default connects to the localhost - 127.0.0.1 address as an SMB client to issue the password change request. If bind interfaces only is set then unless the network address 127.0.0.1 is added to the interfaces parameter list then smbpasswd will fail to connect in it's default mode. smbpasswd can be forced to use the primary IP interface of the local host by using its smbpasswd(8) -r remote machine parameter, with remote machine set to the IP name of the primary interface of the local host.
so: Check that you have: Bind interfaces only = no
That works. :) I'd just like to add that users - in contrary to root - need to set PWs with at least 5 characters or else they get the error "password restriction" which doesn't explain why the PW was rejected. Thanks! Regards Andreas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Andreas
-
John Andersen