Hello, (Resent with extension of .sh file changed to .txt to avoid block by anti-virus software) I have installed Samba 2.2.1a on Solaris 5.8 with NIS+ option. Initially I was getting the following error "[2002/08/08 16:38:05, 0] passdb/nispass.c:(372) make_sam_from_nisresult: NIS+ lookup failure: Database for table does not exist"
However later I 1. Modified smb.conf to include smb passwd file = smbpasswd.org_dir 2. Executed mknissmbpwdtbl.sh (attached to this email) 3. Created a user on my Windows NT SP 6 machine with the same name and password as a unix user sk86406 and then used pwdump to create a smbpasswd file. I then moved this smbpasswd file to unix, edited the uid filed to match the uid for unix. 4. Executed cat smbpasswd | mksmbpasswd.sh (attached) to add the entry to NIS+. Note that the mksmbpasswd.sh has fields home and shell in the script that are not created in the mknissmbpwdtbl.sh. Hence these fields were edited from mksmbpasswd.sh. The smb.conf file is attached. Now when I try to connect from a windows NT workstation (SP 6) or Windows 2000 SP2 using net use * command to map a share I get an network error and the log file shows the following error. "switch message SMBsesssetupX (pid 17983) [2002/08/13 15:25:50, 3] smbd/sec_ctx.c:(317) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2002/08/13 15:25:50, 5] smbd/uid.c:(217) unbecome_user now uid=(0,0) gid=(0,0) [2002/08/13 15:25:50, 3] smbd/reply.c:(866) Domain=[NYC] NativeOS=[Windows 2000 2195] NativeLanMan=[Windows 2000 5.0] [2002/08/13 15:25:50, 3] smbd/reply.c:(876) sesssetupX:name=[sk86406] [2002/08/13 15:25:50, 6] param/loadparm.c:(2144) lp_file_list_changed() file /etc/opt/samba/smb.conf -> /etc/opt/samba/smb.conf last mod_time: Tue Aug 13 13:45:23 2002 [2002/08/13 15:25:50, 10] passdb/nispass.c:(916) getnisp21pwnam: search by name: sk86406 [2002/08/13 15:25:50, 10] passdb/nispass.c:(917) getnisp21pwnam: using NIS+ table smbpasswd.org_dir [2002/08/13 15:25:50, 0] lib/fault.c:(40) =============================================================== [2002/08/13 15:25:50, 0] lib/fault.c:(41) INTERNAL ERROR: Signal 11 in pid 17983 (2.2.1a) Please read the file BUGS.txt in the distribution [2002/08/13 15:25:50, 0] lib/fault.c:(43) =============================================================== [2002/08/13 15:25:50, 0] lib/util.c:(1101) PANIC: internal error" I have been trying to make Samba work for quite a few days now and some urgent help will be really really appreciated. Thanks in advance Regards, Sandeep Kapoor Phone : 212-657-5102 email: [EMAIL PROTECTED]
smb.conf
Description: Binary data
#!/bin/sh # # Copyright (C) 1998 Benny Holmgren # # Script to import smbpasswd file into the smbpasswd NIS+ table. Reads # from stdin the smbpasswd file. # while true do read row if [ -z "$row" ] then break fi if [ "`echo $row | cut -c1`" = "#" ] then continue fi nistbladm -a \ name=\"`echo $row | cut -d: -f1`\" \ uid=\"`echo $row | cut -d: -f2`\" \ lmpwd=\"`echo $row | cut -d: -f3`\" \ ntpwd=\"`echo $row | cut -d: -f4`\" \ acb=\"`echo $row | cut -d: -f5`\" \ pwdlset_t=\"`echo $row | cut -d: -f6`\" \ gcos=\"`echo $row | cut -d: -f7`\" \ home=\"`echo $row | cut -d: -f8`\" \ shell=\"`echo $row | cut -d: -f9`\" smbpasswd.org_dir.`nisdefaults -d` done
#!/bin/sh # # Copyright (C) 1998 Benny Holmgren # # Creates smbpasswd table and smb group in NIS+ # nistbladm \ -D access=og=rmcd,nw= -c \ -s : smbpasswd_tbl \ name=S,nogw=r \ uid=S,nogw=r \ user_rid=S,nogw=r \ smb_grpid=,nw+r \ group_rid=,nw+r \ acb=,nw+r \ \ lmpwd=C,nw=,g=r,o=rm \ ntpwd=C,nw=,g=r,o=rm \ \ logon_t=,nw+r \ logoff_t=,nw+r \ kick_t=,nw+r \ pwdlset_t=,nw+r \ pwdlchg_t=,nw+r \ pwdmchg_t=,nw+r \ \ full_name=,nw+r \ home_dir=,nw+r \ dir_drive=,nw+r \ logon_script=,nw+r \ profile_path=,nw+r \ acct_desc=,nw+r \ workstations=,nw+r \ \ hours=,nw+r \ smbpasswd.org_dir.`nisdefaults -d` nisgrpadm -c smb.`nisdefaults -d` nischgrp smb.`nisdefaults -d` smbpasswd.org_dir.`nisdefaults -d`