[Samba] AutoCAD temp file error

Brock Nanson brock at nanson.org
Fri Nov 1 01:00:01 GMT 2002


I rather doubt this is a samba problem, but perhaps someone can offer a 
hint to solve the issue...

Running AutoDesk Land Development Desktop (AutoCAD with add-ons 
essentially).  The project data files are on the Samba server.  A dozen 
WinXX workstations work flawlessly with this configuration (other than 
typical windows issues).  A win2k workstation was recently added to the 
mix and it works too, except for a set of functions that generate 
temporary files.

Essentially what happens is this:
- the command blocks out a selected portion of the drawing to a temporary 
file and puts the file in the same directory as the drawing (i.e. on the 
server).
- the command then changes a mode in AutoCAD and attempts to insert this 
file into the drawing.
- the temporary file is then deleted.

The win2k box fails, saying the file could not be found on the path (and 
dumps a listing of the paths checked).  The path exists in the list, and 
the file has been written to the directory!  When the user responds to the 
error and the command completes, the file is successfully deleted from the 
server.  So, it is doing everything except finding and inserting the file 
(which is there!).

A work around is to copy this file to a new name then rename to the 
temporary name used by the function.  The next time the command is 
invoked, the routine behaves properly, deleting the file when complete.  
The really strange thing is that the command will work after this until a 
new drawing is loaded for editing!!  That baffles me!

The temp file on the server is being saved with rwxrw-rw- attributes, 
although all the other files are rw-rw-rw-.  All files in the directory 
are set to user and group 'nobody'.  Doing a properties check on the file 
from Win2k shows the file to be owned by 'Nobody' with rwx priviledges, 
but user 'nobody' is also listed with read only rights.  I don't think 
that can be related as the command can be made to function as described 
above.

I had wondered briefly if the speed with which the file is saved, then 
requested could be a problem.  It probably hasn't been written to the 
drive by that time - it's on a software RAID5 - but that shouldn't 
matter...

Any guesses?  Or even a confirmation that the problem is with Win2k and 
NOT the samba box?

I should add that moving the project folder to the local drive on the 
win2k box allows the command to function properly.  Maybe it is a samba 
issue?

 Thanks,

-- 
Brock Nanson
Kamloops BC Canada




More information about the samba mailing list