setting passwords from Windows

Tulipant-Gergely at dbrt.hu Tulipant-Gergely at dbrt.hu
Mon May 31 17:27:43 GMT 1999


I'd like to change Samba passwords from win95 and NT4 clients.
I use security=user.
I don't give shell access to every user, so they can't use smbpasswd.

I've tested from a win95 client with the precompiled samba-2.0.4b.i386.rpm:
net pass \\greg greg test1 test2

I'd used smbpasswd to change greg's password to test1 on host greg prior to this. Here's the 
smbpasswd file:
#
# SMB password file.
#
greg:500:E88D94D6EBD10FC7AAD3B435B51404EE:AACD12D27C87CAC8FC0B8538AED6F05
8:::

It's on one line, even if wrapped. :)

Net pass has failed with error code 86.
Here's the log:

[1999/05/31 18:40:12, 10] lib/util.c:dump_data(2832)
  [000] 5C 50 49 50 45 5C 4C 41  4E 4D 41 4E 00 73 00 7A  \PIPE\LA NMAN.s.z
[1999/05/31 18:40:12, 10] lib/util.c:dump_data(2840)
  [010] 62 31 36 62 31 36 57 57  00 00 47 52 45 47 00 54  b16b16WW ..GREG.T
[1999/05/31 18:40:12, 10] lib/util.c:dump_data(2840)
  [020] 45 53 54 31 00 54 45 53  54 32 00 45 92 EC 00 54  EST1.TES T2.E...T
[1999/05/31 18:40:12, 10] lib/util.c:dump_data(2840)
  [030] 45 53 54 32 00 45 92 EC  00 54 4D 50 3D 43 3A 00  EST2.E.. .TMP=C:.
[1999/05/31 18:40:12, 10] lib/util.c:dump_data(2840)
  [040] 00 05 00                                          ... 

... cut ..
[1999/05/31 18:40:12, 3] smbd/process.c:switch_message(448)
  switch message SMBtrans (pid 1614)
[1999/05/31 18:40:12, 5] smbd/uid.c:become_user(262)
  become_user uid=(0,500) gid=(0,500)
[1999/05/31 18:40:12, 3] lib/doscalls.c:dos_ChDir(336)
  dos_ChDir to /tmp
[1999/05/31 18:40:12, 3] smbd/ipc.c:reply_trans(3612)
  trans <\PIPE\LANMAN> data=0 params=54 setup=0
[1999/05/31 18:40:12, 5] smbd/ipc.c:reply_trans(3623)
  calling named_pipe
[1999/05/31 18:40:12, 3] smbd/ipc.c:named_pipe(3469)
  named pipe command on <LANMAN> name
[1999/05/31 18:40:12, 3] smbd/ipc.c:api_reply(3414)
  Got API command 115 of form <zb16b16WW> <> (tdscnt=0,tpscnt=54,mdrcnt=0,mprcnt=4)
[1999/05/31 18:40:12, 3] smbd/ipc.c:api_reply(3418)
  Doing SetUserPassword
[1999/05/31 18:40:12, 3] smbd/ipc.c:api_SetUserPassword(1690)
  Set password for <GREG>
[1999/05/31 18:40:12, 4] passdb/pass_check.c:pass_check(792)
  Checking password for user greg (l=5)
[1999/05/31 18:40:14, 10] passdb/passdb.c:iterate_getsmbpwnam(142)
  search by name: greg
[1999/05/31 18:40:14, 10] passdb/smbpass.c:startsmbfilepwent(45)
  startsmbfilepwent: opening file /etc/smbpasswd
[1999/05/31 18:40:14, 6] passdb/smbpass.c:getsmbfilepwent(159)
  getsmbfilepwent: skipping comment or blank line
[1999/05/31 18:40:14, 6] passdb/smbpass.c:getsmbfilepwent(159)
  getsmbfilepwent: skipping comment or blank line
[1999/05/31 18:40:14, 6] passdb/smbpass.c:getsmbfilepwent(159)
  getsmbfilepwent: skipping comment or blank line
[1999/05/31 18:40:14, 5] passdb/smbpass.c:getsmbfilepwent(258)
  getsmbfilepwent: returning passwd entry for user greg, uid 500
[1999/05/31 18:40:14, 10] passdb/passdb.c:iterate_getsmbpwnam(158)
  found by name: greg
[1999/05/31 18:40:14, 7] passdb/smbpass.c:endsmbfilepwent(81)
  endsmbfilepwent: closed password file.
[1999/05/31 18:40:14, 0] smbd/chgpasswd.c:check_lanman_password(518)
  check_lanman_password: old password doesn't match.
... cut ...

How come "old password doesn't match" when I can connect to the services with that password?
I also noted that I can't even get this far, if I'm not logged on locally with the correct 
username/password. (An NT "server" lets you change your/anyone's password without having to 
be logged on first.)
And what is the normal way to change your password from NT?
(Since I couldn't find any other way, I tried CTRL-ALT-DEL/Change Password and using the 
name of the samba server in the Domain edit box, but its result was rather weird, so I don't think 
that's the way to go.:))

Are you still with me? Thanks. :)



More information about the samba mailing list