smbpasswd and nmbd don't call my password program
Marc Merlin
marc.merlin at magic.metawire.com
Sat Aug 1 00:01:32 GMT 1998
I have samba-1.9.18p7-2
smb.conf says:
# Configure smbpasswd
passwd chat debug = yes
# Default
passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n
*changed*
passwd program = /usr/bin/yppasswd
Using smbpasswd, my encrypted password is changed, but yppasswd is not even
touched (as per ls -lu /usr/bin/yppasswd).
Furthermore, running smbd with -d 100 didn't seem to show the chat debug.
(long log attached)
I checked the source RPM from redhat, and the makefile shows that samba was
compiled with
FLAGSM = -DLINUX -DNETGROUP -DALLOW_CHANGE_PASSWORD -DFAST_SHARE_MODES
^^^^^^^^^^^^^^^^^^^^^^^
-DNO_ASMSIGNALH -DGLIBC2
Is there any way to check the nmbd binary, just to make sure?
Thanks for any help,
Marc
Trying sysv shmem open of size 102400
shm_initialize : initializing shmem size 102400
shm_alloc : allocated 112 bytes at offset 48
Initialised IPC area of size 102400
lp_file_list_changed()
file /etc/smb.conf -> /etc/smb.conf last mod_time: Fri Jul 31 15:51:13
1998
1998/07/31 16:24:28 changed root to /
open_oplock_ipc: opening loopback UDP socket.
bind succeeded on port 0
open_oplock ipc: pid = 2499, oplock_port = 1438
priming nmbd
sending a packet of len 1 to (127.0.0.1) on port 137 of type DGRAM
Serverzone is 25200
==> samba/log.gloria <==
lp_file_list_changed()
file /etc/smb.conf -> /etc/smb.conf last mod_time: Fri Jul 31 15:51:13
1998
1998/07/31 16:24:29 init msg_type=0x81 msg_flags=0x0
write_socket(5,4)
write_socket(5,4) wrote 4
got smb length of 164
got message type 0x0 of len 0xa4
1998/07/31 16:24:29 Transaction 1 of length 168
size=164
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=0
smb_pid=2498
smb_uid=500
smb_mid=1
smt_wct=0
smb_bcc=129
[000] 02 50 43 20 4E 45 54 57 4F 52 4B 20 50 52 4F 47 .PC NETW ORK PROG
[010] 52 41 4D 20 31 2E 30 00 02 4D 49 43 52 4F 53 4F RAM 1.0. .MICROSO
[020] 46 54 20 4E 45 54 57 4F 52 4B 53 20 31 2E 30 33 FT NETWO RKS 1.03
[030] 00 02 4D 49 43 52 4F 53 4F 46 54 20 4E 45 54 57 ..MICROS OFT NETW
[040] 4F 52 4B 53 20 33 2E 30 00 02 4C 41 4E 4D 41 4E ORKS 3.0 ..LANMAN
[050] 31 2E 30 00 02 4C 4D 31 2E 32 58 30 30 32 00 02 1.0..LM1 .2X002..
[060] 53 61 6D 62 61 00 02 4E 54 20 4C 4D 20 30 2E 31 Samba..N T LM 0.1
[070] 32 00 02 4E 54 20 4C 41 4E 4D 41 4E 20 31 2E 30 2..NT LA NMAN 1.0
[080] 00 .
switch message SMBnegprot (pid 2499)
Requested protocol [PC NETWORK PROGRAM 1.0]
Requested protocol [MICROSOFT NETWORKS 1.03]
Requested protocol [MICROSOFT NETWORKS 3.0]
Requested protocol [LANMAN1.0]
Requested protocol [LM1.2X002]
Requested protocol [Samba]
lp_file_list_changed()
file /etc/smb.conf -> /etc/smb.conf last mod_time: Fri Jul 31 15:51:13
1998
lp_file_list_changed()
file /etc/smb.conf -> /etc/smb.conf last mod_time: Fri Jul 31 15:51:13
1998
Selected protocol NT LANMAN 1.0
1998/07/31 16:24:29 negprot index=7
size=86
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=2498
smb_uid=500
smb_mid=1
smt_wct=17
smb_vwv[0]=7 (0x7)
smb_vwv[1]=12803 (0x3203)
smb_vwv[2]=256 (0x100)
smb_vwv[3]=65280 (0xFF00)
smb_vwv[4]=255 (0xFF)
smb_vwv[5]=65280 (0xFF00)
smb_vwv[6]=255 (0xFF)
smb_vwv[7]=49920 (0xC300)
smb_vwv[8]=9 (0x9)
smb_vwv[9]=256 (0x100)
smb_vwv[10]=3 (0x3)
smb_vwv[11]=32768 (0x8000)
smb_vwv[12]=17908 (0x45F4)
smb_vwv[13]=55901 (0xDA5D)
smb_vwv[14]=48572 (0xBDBC)
smb_vwv[15]=41985 (0xA401)
smb_vwv[16]=2049 (0x801)
smb_bcc=17
[000] F2 1E 6A CA D7 ED DC E1 44 41 54 41 4D 41 49 4E ..j..... DATAMAIN
[010] 00 .
write_socket(5,90)
write_socket(5,90) wrote 90
got smb length of 104
got message type 0x0 of len 0x68
1998/07/31 16:24:29 Transaction 2 of length 108
size=104
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=0
smb_pid=2498
smb_uid=500
smb_mid=1
smt_wct=13
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=65535 (0xFFFF)
smb_vwv[3]=2 (0x2)
smb_vwv[4]=2498 (0x9C2)
smb_vwv[5]=2499 (0x9C3)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=24 (0x18)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_vwv[10]=0 (0x0)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=0 (0x0)
smb_bcc=43
[000] 0B 8C 5D D7 BA DD 02 AF 3D E4 16 E6 E9 82 C4 CF ..]..... =.......
[010] C3 0B E7 54 E4 16 1F 2C 4D 45 52 4C 49 4E 00 00 ...T..., MERLIN..
[020] 55 6E 69 78 00 53 61 6D 62 61 00 Unix.Sam ba.
switch message SMBsesssetupX (pid 2499)
Domain=[] NativeOS=[Unix] NativeLanMan=[Samba]
sesssetupX:name=[MERLIN]
lp_file_list_changed()
file /etc/smb.conf -> /etc/smb.conf last mod_time: Fri Jul 31 15:51:13
1998
SMB Password - pwlen = 24, challenge_done = 1
Checking SMB password for user merlin (l=24)
get_smbpwd_entry: opening file /etc/smbpasswd
get_smbpwd_entry: search by name: merlin
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: found by name: merlin
get_smbpwd_entry: returning passwd entry for user merlin, uid 500
Checking NT MD4 password
NT MD4 password check failed
Updated database with merlin Yes
lp_servicenumber: couldn't find merlin
adding home directory merlin at /home/merlin
merlin is in 1 groups
500
uid 500 registered to name merlin
Clearing default real name
Client requested max send size of 65535
size=70
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=2498
smb_uid=100
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_bcc=29
[000] 55 6E 69 78 00 53 61 6D 62 61 20 31 2E 39 2E 31 Unix.Sam ba 1.9.1
[010] 38 70 37 00 44 41 54 41 4D 41 49 4E 00 8p7.DATA MAIN.
write_socket(5,74)
write_socket(5,74) wrote 74
got smb length of 59
got message type 0x0 of len 0x3b
1998/07/31 16:24:29 Transaction 3 of length 63
size=59
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=0
smb_pid=2498
smb_uid=100
smb_mid=1
smt_wct=4
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=1 (0x1)
smb_bcc=16
[000] 00 5C 5C 31 32 37 5C 49 50 43 24 00 49 50 43 00 .\\127\I PC$.IPC.
switch message SMBtconX (pid 2499)
Got device type IPC
Trying username ipc$
ACCEPTED: validated uid ok as non-guest
found free connection number 63
Connect path is /tmp
become_user uid=(0,500) gid=(500,500)
chdir to /tmp
chdir to /var/log
unbecome_user now uid=(0,0) gid=(0,0)
1998/07/31 16:24:29 gloria (127.0.0.1) connect to service IPC$ as user
merlin (uid=500,gid=500) (pid 2499)
1998/07/31 16:24:29 tconX service=ipc$ user=merlin cnum=63
size=51
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=63
smb_pid=2498
smb_uid=100
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_bcc=10
[000] 49 50 43 00 53 41 4D 42 41 00 IPC.SAMB A.
write_socket(5,55)
write_socket(5,55) wrote 55
got smb length of 631
got message type 0x0 of len 0x277
1998/07/31 16:24:29 Transaction 4 of length 635
size=631
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=63
smb_pid=2498
smb_uid=100
smb_mid=1
smt_wct=14
smb_vwv[0]=23 (0x17)
smb_vwv[1]=532 (0x214)
smb_vwv[2]=2 (0x2)
smb_vwv[3]=0 (0x0)
smb_vwv[4]=0 (0x0)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=0 (0x0)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=23 (0x17)
smb_vwv[10]=76 (0x4C)
smb_vwv[11]=532 (0x214)
smb_vwv[12]=99 (0x63)
smb_vwv[13]=0 (0x0)
smb_bcc=568
[000] 5C 50 49 50 45 5C 4C 41 4E 4D 41 4E 00 D6 00 7A \PIPE\LA NMAN...z
[010] 73 54 00 42 35 31 36 42 31 36 00 6D 65 72 6C 69 sT.B516B 16.merli
[020] 6E 00 14 02 21 EA 84 B5 33 3C 0C 28 62 23 EE 86 n...!... 3<.(b#..
[030] 2C FE F1 3E 20 B9 7B F1 B9 AF C1 0F 5B 3D 64 9D ,..> .{. ....[=d.
[040] E8 9B D5 DC 39 07 7F 47 72 BF 04 12 5B 89 D8 D5 ....9..G r...[...
[050] C1 7E D4 F5 C2 D0 FB 4D 1A 1F 8E EF CB 2C B8 65 .~.....M .....,.e
[060] 46 C5 FC DE 9B 65 19 C2 79 43 29 04 94 83 41 E0 F....e.. yC)...A.
[070] DB 47 78 7C 4A 55 6B AF 0F 39 83 CD 13 1A 54 5E .Gx|JUk. .9....T^
[080] 5B 73 61 82 90 0A 7E 50 84 C4 5B EE 1A 69 34 A1 [sa...~P ..[..i4.
[090] 45 EF 27 11 A0 D7 90 0C 26 F6 2B 6E C3 A8 EF 8F E.'..... &.+n....
[0A0] 6D FD 42 5E A0 A4 6B 63 20 F2 4A CF F3 24 B1 40 m.B^..kc .J..$.@
[0B0] EB AB 40 23 0C E8 9E 43 D0 E8 19 5E DF BA DD 04 ..@#...C ...^....
[0C0] A1 20 DE DC 95 42 75 2B 8B 87 04 70 89 AF C4 3E . ...Bu+ ...p...>
[0D0] 0A C3 18 81 5A 90 BA 64 41 1C CB CA 13 15 81 9E ....Z..d A.......
[0E0] FF 7B 69 B0 D9 97 F9 DF D7 48 F1 47 CB BB 7B 48 .{i..... .H.G..{H
[0F0] 9B D2 BF 74 60 E4 E7 3E C1 73 C4 F4 F5 21 DF BE ...t`..> .s...!..
[100] 7C 8E C5 91 0D 76 28 C0 FD CD D4 49 20 ED 1F A1 |....v(. ...I ...
[110] 36 45 3E 25 82 03 D2 9E AA 32 BF 39 72 8B BB 16 6E>%.... .2.9r...
[120] A0 45 1A 56 8B A7 9D 60 77 B4 A6 4A 93 77 3D D9 .E.V...` w..J.w=.
[130] 76 DE 90 2A 52 6F 9B B1 94 C1 11 3B 66 78 F6 6F v..*Ro.. ...;fx.o
[140] 07 5F 5E CC 69 8B 26 E4 C3 C0 2F 63 2A 20 48 FA ._^.i.&. ../c* H.
[150] C1 72 50 78 1E E6 9D 9B 4B D7 7D 08 74 48 BC 03 .rPx.... K.}.tH..
[160] BF 4A 36 B3 70 BB 1D 8A 81 0C A1 9F F4 FC 02 4F .J6.p... .......O
[170] A8 74 75 0D 7B 06 8E 6D F5 67 7F 22 DF 5F F0 5C .tu.{..m .g."._.\
[180] AA C8 02 02 BE D5 12 01 6B FF 12 4D CB 54 BD 61 ........ k..M.T.a
[190] 8B C2 16 32 43 E4 32 B5 13 EF 7D FF D6 8E 90 17 ...2C.2. ..}.....
[1A0] 17 79 D5 0B 3E 54 E2 EE 24 23 B5 DF 33 DB D8 0A .y..>T.. $#..3...
[1B0] 34 3B 9B 03 AC E5 B6 B7 3F 37 1A FA 1E 52 C0 A1 4;...... ?7...R..
[1C0] 67 86 66 15 FC 18 05 9E 10 1B 73 D2 AE 5A F5 88 g.f..... ..s..Z..
[1D0] 7F AC 6B 48 C9 ED 2F 57 EB 69 66 F8 85 DA 4B BD ..kH../W .if...K.
[1E0] 57 8A 65 96 78 B4 9A 60 60 80 99 38 42 A8 13 D8 W.e.x..` `..8B...
[1F0] 93 0A BF A1 8D 75 E0 9D 64 08 9B 26 19 BB C7 64 .....u.. d..&...d
switch message SMBtrans (pid 2499)
become_user uid=(0,500) gid=(500,500)
chdir to /tmp
trans <\PIPE\LANMAN> data=532 params=23 setup=0
calling named_pipe
named pipe command on <LANMAN> name
Got API command 214 of form <zsT> <B516B16>
(tdscnt=532,tpscnt=23,mdrcnt=0,mprcnt=2)
Doing SamOEMChangePassword
get_smbpwd_entry: opening file /etc/smbpasswd
get_smbpwd_entry: search by name: merlin
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: skipping comment or blank line
get_smbpwd_entry: found by name: merlin
get_smbpwd_entry: returning passwd entry for user merlin, uid 500
mod_smbpwd_entry: opening file /etc/smbpasswd
mod_smbpwd_entry: skipping comment or blank line
mod_smbpwd_entry: skipping comment or blank line
mod_smbpwd_entry: skipping comment or blank line
mod_smbpwd_entry: skipping comment or blank line
mod_smbpwd_entry: skipping comment or blank line
mod_smbpwd_entry: skipping comment or blank line
mod_smbpwd_entry: entry exists
size=59
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=63
smb_pid=2498
smb_uid=100
smb_mid=1
smt_wct=10
smb_vwv[0]=2 (0x2)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=2 (0x2)
smb_vwv[4]=55 (0x37)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=59 (0x3B)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=4
[000] 00 00 00 00 ....
write_socket(5,63)
write_socket(5,63) wrote 63
end of file from client
chdir to /var/log
unbecome_user now uid=(0,0) gid=(0,0)
Closing connections
1998/07/31 16:24:29 gloria (127.0.0.1) closed connection to service IPC$
Yielding connection to 63 IPC$
1998/07/31 16:24:29 Server exit (normal exit)
--
Home page: http://magic.metawire.com/~merlin/ (browser friendly)
Finger merlin at magic.metawire.com for PGP key and other contact information
More information about the samba
mailing list