Problem with smbpasswd

Rainer Hauck hauck at
Tue Mar 31 14:29:11 GMT 1998

Hi all,

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 at port 139
write_socket(3,76) wrote 76
Sent session request
got smb length of 1
../bin/smbpasswd: machine 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.

What am I doing wrong? Did I understand the story about the chat the
right way? Do you need ALLOW_CHANGE_PASSWORD to change the
samba-password (to my understanding it's only needed if youwant to
change the unix-password aswell)?

Any help would be appreciated!

Thank you very much,

Rainer Hauck

The output in the log.smb file at a debug level of 100 (compiled with
-DEBUG_PASSWORD) is as follows:

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 ( on port 137 of type DGRAM
Serverzone is -7200
got smb length of 72
03/31/1998 16:04:55 Connection denied from
write_socket(6,5) wrote 5
Closing connections
03/31/1998 16:04:55 Server exit  (connection denied)

The relevant part of my smb.conf file is as follows:

   security = user
   password level = 0
   encrypt passwords = yes

        _  _ _  _ _  _          RAINER HAUCK
        |\/| |\ | |\/|          Institut fuer Informatik / Dept. of CS
        |  | | \| |  |          Ludwig-Maximilians-University Munich
     ======= TEAM =======       Oettingenstr. 67, 80538 Munich, Germany
Munich Network Management Team  Room D01,Phone +49-89-2178-2155,Fax-2262
Muenchner Netz-Management Team  email: hauck at

More information about the samba mailing list