smbpasswd command - updated
wsteffen at bwn.net
wsteffen at bwn.net
Mon Dec 1 11:08:19 GMT 2003
A couple of days ago I posted a problem I was having with the
smbapasswd command for users (not root).
Here is the original post:
I have Samba installed on a HP-UX 11.00 system using NIS for
UID/password resolution. The smbpasswd file hasbeen initilized
and as root I can add a user's password and the user can
"attach"
the "share". But when the user tries to do the same, it
produces
the following error:
machine 127.0.0.1 rejected the tconX on the IPC$ share. Error
was
: code 0. Failed to change password for lucy.
Did I forget to do somthing? Can anyone help?
Thanks
Warren Steffen
wsteffen at bwn.net
I have since been experimenting with various options in the
smb.conf
file, including; interfaces, null passwords, "NO PASSWORD" in the
smbpasswd file, hosts allow, updated encrypted, force group, and
force user. In all cases a "temp" password was put in the
smbpasswd
file by the root user (except for the "NO PASSWORD" test).
The results were basiclly the same for every thing except
when I used the following in smb.conf:
force group = users
force user = lucy
Then it worked for that user and root still worked but no other
user.
Which is what I expected after looking at the log file enrties
(which
are included below). The log entries are from the
samba/log/log.system
log. Where "system" is the system where Samba runs and the
smbpasswd
command was executed.
Some additional information: Samba was built on this system using
GCC,
bison, flex, and binutils.
Does anyone out there have encrypted passwords working for Samba
2.0.6?
On HP-UX 11.00? With NIS (although the tests somewhat eliminate
this?)?
When there is "null passwords = true" in smb.conf log file shows:
[2000/01/21 08:13:19, 1] smbd/password.c:pass_check_smb(505)
Couldn't find user 'nobody' in smb_passwd file.
[2000/01/21 08:13:19, 1] smbd/password.c:pass_check_smb(505)
Couldn't find user 'nobody' in smb_passwd file.
[2000/01/21 08:13:19, 0] lib/util_sec.c:assert_gid(70)
Failed to set gid privileges to (-1,-2) now set to (0,0)
uid=(0,0)
[2000/01/21 08:13:19, 0] lib/util.c:smb_panic(2456)
PANIC: failed to set gid
Log entry befor expermenting with "force group/user" config
parms:
[2000/01/21 09:25:36, 0] lib/util_sec.c:assert_gid(70)
Failed to set gid privileges to (-1,-2) now set to (0,0)
uid=(0,0)
[2000/01/21 09:25:36, 0] lib/util.c:smb_panic(2456)
PANIC: failed to set gid
Log entry after "force group = users" added to smb.conf file:
[2000/01/21 10:17:35, 0] lib/util_sec.c:assert_uid(54)
Failed to set uid privileges to (-1,-2) now set to (0,0)
[2000/01/21 10:17:35, 0] lib/util.c:smb_panic(2456)
PANIC: failed to set uid
NO LOG ENTRY FOR SUCCSESSFULL PASSWORD CHANGE!
P.S. I have tried the archives, but have not found the same
problem.
I have found simular problems and got some ideas. Most of the
entries
that looked promising could not be found by BRAINDRAIN (or
whatever it
is).
More information about the samba
mailing list