Hi Alex,
Ok, general stuff is out of the way, except for one thing - the USER you
are trying to change the password for - does it actually EXIST in your
/etc/passwd file (or your nis password database, if you are using nis)?
If you can do the following I would be glad to take a look and see if I
can help you off-list:
1. in your smb.conf file global section:
log file = /usr/local/samba/var/log.%m
log level = 10
2. execute you smbpasswd command while logged on as the non-root user
who's password you are trying to change.
3. off-list, send me a copy of the log.<yoursambaservername> that gets
generated as a result of the smbpasswd command, a copy of your
user.map file from the /usr/local/samba/lib subdirectory, a copy of
your smb.conf file, and the results of the following command:
"grep <usernameyouaretryingtochange> /etc/passwd". Also in
your
message let me know the name of the unix user you are logged in as
when the smbpasswd command fails.
Hope I can help,
Don
-----Original Message-----
From: Alexey Koptsevich [mailto:kopts@astro.ioffe.rssi.ru]
Sent: Thursday, February 08, 2001 8:36 AM
To: MCCALL,DON (HP-USA,ex1)
Cc: samba@samba.org
Subject: RE: fails to change password, FreeBSD
Hello,
Thank you for explanations! I have added 127.0.0.1 to the 'hosts
allow" field but nothing has changed. I have only one interface, so I left
"interface=" and "bind interfaces only = no". But when I try
to
change smbpasswd as user Samba complains
[2001/02/08 16:25:58, 1] smbd/reply.c:reply_sesssetup_and_X(988)
Username is invalid on this system
although I actually use SMB services and root can change password.
Thanks,
Alex
On Wed, 7 Feb 2001, MCCALL,DON (HP-USA,ex1) wrote:
> Hello Alexey,
> When run as root, smbpasswd actually manipulates the smbpasswd file
> directly; does not need to establish a session with the Samba server.
> When run as any other user, it establishes a session with the Samba server
> to get the password changed. There are a couple of known problems where
if> you have interfaces = and bind only interfaces = yes in your smb.conf
file,> that the smbpasswd command can fail because it cannot establish a
connection> via the localhost (127.0.0.1) loopback.
> This same sort of thing can happen if localhost is not resolvable (ie it
is> not in your /etc/hosts file, or on your dns server)...
> Or if you have a hosts allow or hosts deny in your global section of
> smb.conf you may also be keeping 'localhost' from accessing samba
during
> this phase. You might check these things.
> If you change your global smb.conf parameters log level = 10, and then try
> smbpasswd again, you can look at the resulting log.smb debug file and get
a> better picture of exactly what step is failing.
>
> Hope this helps,
> Don
>
> -----Original Message-----
> From: Alexey Koptsevich [mailto:kopts@astro.ioffe.rssi.ru]
> Sent: Wednesday, February 07, 2001 2:04 PM
> To: samba@samba.org
> Subject: fails to change password, FreeBSD
>
>
>
> Hello,
>
> smbpasswd (ver. 2.0.7) fails to change password if run as regular user,
> although does this if run as root. I use FreeBSD 4.2 RELEASE. Session log:
>
> > smbpasswd
> Old SMB password:
> New SMB password:
> Retype new SMB password:
> machine 127.0.0.1 rejected the session setup. Error was : ERRSRV -
> ERRbadpw (Bad password - name/password pair in a Tree Connect or Session
> Setup are invalid.).
> Failed to change password for kopts
>
> Thanks,
> Alex
>
>