[Samba] Win2k, Domain logon, permissions

Brock Nanson bnanson at true.bc.ca
Fri Mar 7 19:24:18 GMT 2003


I first asked this question at the end of October, got a response which
didn't solve the problem, and have finally got back to the issue now.

I'm running 2.2.7a, recently upgraded from 2.2.0 as Domain Logons for
Win2K were suspected to be part of my problem.  Anyway, the issue
relates to AutoCAD (actually a vertical product called Land3) and a
command which works with winXX boxes, but fails with 2K.

Data files are on the server.  The definition is as follows:

[cad]
   path = /home/sdsk
   create mask = 0774
   directory mask = 0775
;   force group = autocad
;   write list = @autocad
   public = yes
   only guest = yes
   writable = yes
   printable = no

As you can see, the commented out lines show some things I've been
trying.  The original problem was:

-a command writes a drawing block to the directory of the current
drawing in use (on the Samba server)
-it is supposed to then read the block back in and insert it in the
drawing (Sheetmanager, copy mspace to pspace if any cares) and delete it
from the server.
-the command fails (only on 2K), saying it couldn't find the file on any
of the paths, provides a list of which the second entry is correct.
-I can view the directory and see the temporary file in it, called
$cvp$tp.dwg.
-Allowing the command to complete, the file is removed as it should be.

I can have the command complete correctly if I 'seed' the directory with
a file of the name shown above.  The command overwrites the file with
the correct one, and somehow manages to find it this time, then deletes
it properly when complete.  However, it will fail the next time because
that seed file is gone!

I upgraded to 2.2.7a to get the domain logons working properly (a story
in itself ;-) - which they apparently are now.  As I was unable to get
'complete control' of the file without the domain logons, my reseller
was reluctant to take the problem to Autodesk.  Now that the domain
logons work, I can have complete control - but the command is still
failing.

As can be seen with the share definition above, I did try changing from
my original owner/group setting of 'nobody, nobody' to the real owner
and the 'autocad' group.  My logic was that perhaps AutoCAD wanted to
see that this file was owned by the win2k box, rather than owned by
nobody.  This did not make a difference.

The only thing I stumbled upon that might help someone suggest a
solution was that killing and restarting the samba daemons after the
win2k box had opened the main drawing file will allow the command to
complete!  The main drawing throws an error when you next try to save
it, but does seem to connect OK after a short time.  The following is
the output of smbstatus before and after a samba restart - sorry, the
long file names don't wrap nicely...:

********************************************
[root at bigserver bin]# ./smbstatus

Samba version 2.2.7a
Service      uid      gid      pid     machine
----------------------------------------------
cad          todd     todd     16138   true-mobile1 (192.168.0.114) Thu
Mar  6 23:49:13 2003

Locked files:
Pid    DenyMode   Access      R/W        Oplock           Name
--------------------------------------------------------------
16138  DENY_WRITE 0x20089     RDONLY     LEVEL_II
/home/sdsk/Land Projects R3/488-121P/Architect -
Petroff/03JAN14/arch.dwg   Thu Mar  6 23:51:35 2003
16138  DENY_NONE  0x20089     RDONLY     LEVEL_II
/home/sdsk/Land Projects R3/488-121P/Architect -
Petroff/03JAN14/arch.dwg   Thu Mar  6 23:51:35 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/align/Alignment.mdb   Thu Mar  6
23:52:24 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/LongFileNameSystem.ldb   Thu Mar  6
23:52:23 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/align/Alignment.ldb   Thu Mar  6
23:52:25 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/XDRefs.ldb   Thu Mar  6
23:55:21 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/DescKey/DEFAULT.mdb   Thu Mar
6 23:55:21 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/points.mdb   Thu Mar  6
23:55:22 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/points.ldb   Thu Mar  6
23:55:22 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/XDRefs.mdb   Thu Mar  6
23:55:21 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/DescKey/DEFAULT.ldb   Thu Mar
6 23:55:21 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/LongFileNameSystem.mdb   Thu Mar  6
23:52:23 2003
16138  DENY_WRITE 0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/Design/brock-grading.dwg   Thu Mar
6 23:54:20 2003

[root at bigserver bin]# !kill
killall -KILL nmbd
[root at bigserver bin]# killall -KILL smbd
[root at bigserver bin]# !/usr
/usr/local/samba//bin/smbd -D
[root at bigserver bin]# /usr/local/samba//bin/nmbd -D 
[root at bigserver bin]# ./smbstatus

Samba version 2.2.7a
Service      uid      gid      pid     machine
----------------------------------------------

Locked files:
Pid    DenyMode   Access      R/W        Oplock           Name
--------------------------------------------------------------
16138  DENY_WRITE 0x20089     RDONLY     LEVEL_II
/home/sdsk/Land Projects R3/488-121P/Architect -
Petroff/03JAN14/arch.dwg   Thu Mar  6 23:51:35 2003
16138  DENY_NONE  0x20089     RDONLY     LEVEL_II
/home/sdsk/Land Projects R3/488-121P/Architect -
Petroff/03JAN14/arch.dwg   Thu Mar  6 23:51:35 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/align/Alignment.mdb   Thu Mar  6
23:52:24 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/LongFileNameSystem.ldb   Thu Mar  6
23:52:23 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/align/Alignment.ldb   Thu Mar  6
23:52:25 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/XDRefs.ldb   Thu Mar  6
23:55:21 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/DescKey/DEFAULT.mdb   Thu Mar
6 23:55:21 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/points.mdb   Thu Mar  6
23:55:22 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/points.ldb   Thu Mar  6
23:55:22 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/XDRefs.mdb   Thu Mar  6
23:55:21 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/cogo/DescKey/DEFAULT.ldb   Thu Mar
6 23:55:21 2003
16138  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/LongFileNameSystem.mdb   Thu Mar  6
23:52:23 2003
16138  DENY_WRITE 0x2019f     RDWR       EXCLUSIVE+BATCH
/home/sdsk/Land Projects R3/488-121P/Design/brock-grading.dwg   Thu Mar
6 23:54:20 2003

[root at bigserver bin]#

*******************************************************

Notice that the 'service' entry goes blank.  Can anyone suggest a course
of action to solve this one?  Or what additional information I could add
to help in the diagnosis?

Thanks,

R Brock Nanson, P.Eng.   



More information about the samba mailing list