Problem with smbpasswd

Jeremy Allison
Tue, 31 Mar 1998 19:29:00 -0000

Rainer Hauck wrote:

> I've just set up password encryption using 1.9.18p4. I compiled with NO
> ALLOW_CHANGE_PASSWORD option because compilation didn't work (I'm
using
> HP-UX 10.20). Everything seems to be working correctly instead of a
> 'normal' user trying to change his (samba-) password using
smbpasswd
> (root can change any password). The messages I receive are as follows:
>
> Old SMB password:
> New SMB password:
> Retype new SMB password:
> Connecting to 127.0.0.1 at port 139
> write_socket(3,76)
> write_socket(3,76) wrote 76
> Sent session request
> got smb length of 1
> ./bin/smbpasswd: machine 127.0.0.1 rejected the session request. Error
> was : code 131.
>
> I've already read a mail about a similar problem saying there might be
a
> problem with the 'chat-script'. Correct me if I'm wrong but to
my
> opinion there should be no chat at all unless specifying 'unix passwd
> sync = true' in smb.conf.
>

Yes that is correct.

> adding IPC service
> 03/31/1998 16:04:55 changed root to /
> open_oplock_ipc: opening loopback UDP socket.
> bind succeeded on port 0
> open_oplock ipc: pid = 12845, oplock_port = 4300
> priming nmbd
> sending a packet of len 1 to (127.0.0.1) on port 137 of type DGRAM
> Serverzone is -7200
> got smb length of 72
> 03/31/1998 16:04:55 Connection denied from 127.0.0.1
> write_socket(6,5)
> write_socket(6,5) wrote 5
> Closing connections
> 03/31/1998 16:04:55 Server exit  (connection denied)
> got SIGCLD
>

The interesting line is :

03/31/1998 16:04:55 Connection denied from 127.0.0.1

Do you have a hosts allow/ hosts deny list in
smb.conf ? If so you may want to add localhost
to the allow list :-).

Jeremy.

--
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------