Win2k & Samba compatibility?

A L Palacios palacios at plhp002.comm.mot.com
Wed Feb 16 21:15:39 GMT 2000


'Experienced same problem and fixed it by setting "force directory mode"
in my smb.conf instead of letting SAMBA 2.0.6 use "000" as default (which
doesn't sound right but that's what it does...).
You should be able to double-check this "000" default value by running 
"testparm" against your smb.conf.

Also, your need to "fix" lib/util_sec.c and locking/locking_slow.c 
according to samba-pre2.0.7 "bug-fixes" notes to make it work with 
W2K.

A.L. Palacios

--
Regards,
______________________________________________________________
 A.L. Palacios                    MOTOROLA Inc., CGISS/CE
 Staff Systems Engineer           8000 W Sunrise Blvd
 Core UNIX System Administrator   Plantation FL 33322
 email: A.Palacios at motorola.com   MailStop: 2426
 SMTP: palacios at comm.mot.com      (954) 723-6035 FAX 723-4753
                                  pager 723-4567, p4849
______________________________________________________________
MOTOROLA Inc.
Commercial, Government and Industrial Solutions Sector
Communications Enterprise
______________________________________________________________

> 
> "Romeril, Alan" wrote:
> > 
> > Nothing gets returned in the debug logs by unpack_unix_permissions() or
> > map_nt_perms().  It doesn`t seem to be an ACL issue.
> > 
> > Here`s a grab when writing the profile back.  A link to a machine called
> > icnts3 was created.
> > 
> > [2000/02/15 20:36:38, 3] smbd/process.c:switch_message(448)
> >   switch message SMBtrans2 (pid 19768)
> > [2000/02/15 20:36:38, 4] smbd/uid.c:become_user(186)
> >   Skipping become_user - already user
> > [2000/02/15 20:36:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(1351)
> >   call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257
> > [2000/02/15 20:36:38, 5] smbd/filename.c:unix_convert(348)
> >   unix_convert called on file "\pc\sm79.pds\nethood\icnts3\target.lnk"
> > [2000/02/15 20:36:38, 3] lib/util.c:unix_clean_name(522)
> >   unix_clean_name [/pc/sm79.pds/nethood/icnts3/target.lnk]
> > [2000/02/15 20:36:38, 5] smbd/filename.c:unix_convert(455)
> >   unix_convert begin: name = pc/sm79.pds/nethood/icnts3/target.lnk, dirpath
> > = pc/sm79.pds/nethood/icnts3, start = target.lnk
> > [2000/02/15 20:36:38, 3] smbd/filename.c:scan_directory(716)
> >   scan dir didn't open dir [pc/sm79.pds/nethood/icnts3]
> > [2000/02/15 20:36:38, 5] smbd/filename.c:unix_convert(583)
> >   New file target.lnk
> > [2000/02/15 20:36:38, 8] lib/util.c:is_in_path(2416)
> >   is_in_path: pc/sm79.pds/nethood/icnts3/target.lnk
> > [2000/02/15 20:36:38, 8] lib/util.c:is_in_path(2421)
> >   is_in_path: no name list.
> > [2000/02/15 20:36:38, 3] lib/util.c:unix_clean_name(522)
> >   unix_clean_name [pc/sm79.pds/nethood/icnts3/target.lnk]
> > [2000/02/15 20:36:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(1357)
> >   fileinfo of pc/sm79.pds/nethood/icnts3/target.lnk failed (Permission
> > denied)
> > [2000/02/15 20:36:38, 3] smbd/error.c:error_packet(138)
> >   error packet at line 1363 cmd=50 (SMBtrans2) eclass=1 ecode=5
> > [2000/02/15 20:36:38, 3] smbd/error.c:error_packet(143)
> >   error string = Permission denied
> > 
> > And here a link to a machine called smnts1
> > 
> > [2000/02/15 19:59:16, 3] smbd/process.c:switch_message(448)
> >   switch message SMBtrans2 (pid 19550)
> > [2000/02/15 19:59:16, 4] smbd/uid.c:become_user(186)
> >   Skipping become_user - already user
> > [2000/02/15 19:59:16, 3] smbd/trans2.c:call_trans2qfilepathinfo(1351)
> >   call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257
> > [2000/02/15 19:59:16, 5] smbd/filename.c:unix_convert(348)
> >   unix_convert called on file "\pc\sm79.pds\nethood\smnts1\target.lnk"
> > [2000/02/15 19:59:16, 3] lib/util.c:unix_clean_name(522)
> >   unix_clean_name [/pc/sm79.pds/nethood/smnts1/target.lnk]
> > [2000/02/15 19:59:16, 5] smbd/filename.c:unix_convert(455)
> >   unix_convert begin: name = pc/sm79.pds/nethood/smnts1/target.lnk, dirpath
> > = pc/sm79.pds/nethood/smnts1, start = target.lnk
> > [2000/02/15 19:59:16, 3] smbd/filename.c:scan_directory(716)
> >   scan dir didn't open dir [pc/sm79.pds/nethood/smnts1]
> > [2000/02/15 19:59:16, 5] smbd/filename.c:unix_convert(583)
> >   New file target.lnk
> > [2000/02/15 19:59:16, 8] lib/util.c:is_in_path(2416)
> >   is_in_path: pc/sm79.pds/nethood/smnts1/target.lnk
> > [2000/02/15 19:59:16, 8] lib/util.c:is_in_path(2421)
> >   is_in_path: no name list.
> > [2000/02/15 19:59:16, 3] lib/util.c:unix_clean_name(522)
> >   unix_clean_name [pc/sm79.pds/nethood/smnts1/target.lnk]
> > [2000/02/15 19:59:16, 3] smbd/trans2.c:call_trans2qfilepathinfo(1357)
> >   fileinfo of pc/sm79.pds/nethood/smnts1/target.lnk failed (Permission
> > denied)
> > [2000/02/15 19:59:16, 3] smbd/error.c:error_packet(138)
> >   error packet at line 1363 cmd=50 (SMBtrans2) eclass=1 ecode=5
> > [2000/02/15 19:59:16, 3] smbd/error.c:error_packet(143)
> >   error string = Permission denied
> > 
> > I wondered what W2K would do if I made the directory in nethood that
> > contained the target.lnk.
> > So, with W2K logged on.  I made a link in the "My network places" tool on
> > the desktop to a machine called csy.  Then made a directory called csy in
> > the nethood directory of the home directory, chown chgrp and chmod `ing so
> > it could be written to.
> > 
> > drwxr-xr-x   2 sm79     dk           512 Feb 15 21:09 csy
> > drwxr-xr-x   2 sm79     dk           512 Feb 15 21:09 hhb
> > drwxr-xr-x   2 sm79     dk           512 Feb 15 21:09 icnts3
> > 
> > and during the write this changed to
> > d---------   2 sm79     dk           512 Feb 15 21:12 csy
> > drwxr-xr-x   2 sm79     dk           512 Feb 15 21:09 hhb
> > drwxr-xr-x   2 sm79     dk           512 Feb 15 21:09 icnts3
> > 
> > I quickly chmod`d it to 777 and the profile managed to get written back
> > leaving the directory like this.
> > 
> > drwxr-xr-x   2 sm79     dk           512 Feb 15 21:12 csy
> > drwxr-xr-x   2 sm79     dk           512 Feb 15 21:09 hhb
> > drwxr-xr-x   2 sm79     dk           512 Feb 15 21:09 icnts3
> > 
> > So, where from here?
> 
> You're not sending me the full log trace. Somewhere in
> the SMB call stream the client is changing permissions
> on the 'csy' directory you created. I need to see the
> SMB log from that call.
> 
> Disconnect the machine, create the directory, set the
> permissions as you desire, then crank the log up to level
> 10 in a per-client file and reproduce the problem.
> 
> Then send the *entire* log to me please, not just the
> fragments that look 'interesting'. I'll need this to
> fix the problem.
> 
> Thanks,
> 
> 	Jeremy.
> 
> -- 
> --------------------------------------------------------
> Buying an operating system without source is like buying
> a self-assembly Space Shuttle with no instructions.
> --------------------------------------------------------




More information about the samba-technical mailing list