Problem with smbpasswd

Rainer Hauck hauck at informatik.uni-muenchen.de
Wed Apr 1 10:35:16 GMT 1998


Jeremy Allison wrote:

> 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 :-).
>

Great, this solved the problem. Thank you very much.

But there are still some questions left open:

Why was root allowed to change the password?

Is there a way to do the 'password sync' with HP-UX 10.20? Where can I find a
list which OSs support this feature? All I found in the docs is that not all
OSs support it.

How can I set the debug level for smbpasswd. The command line option '-D'
seems to be ignored. To my opinion it takes the debug level from the smb.conf
file. This is especially annoying when you are using a high debug level to
track some problem because all your users automatically get the debug output
when changing their passwords.

Every time I run smbpasswd I get the following message:
params.c:Parameter() - Ignoring badly formed line in configuration file: bal
setting for a default install
I inspected the file params.c and I found the line:
 char *func    = "params.c:Parameter() -";
What's wrong with this?

Thanks a lot

Rainer

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



--
        _  _ _  _ _  _          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 informatik.uni-muenchen.de





More information about the samba mailing list