[Samba] SOLVED! Problem saving AutoCAD files

Info Cambria info at cambria.it
Fri Feb 14 16:16:29 MST 2014


Hi folks, hi Tom

I found the problem.
Originally I did a 'chmod -R 1777 root:root /home'. This prevents users
other than owner to delete files on the subdirs like my "condivisione" (see
smb.inf below).
Because the saving operation of autoCAD .dwg files involves several steps of
create-rename-delete temporary file before save THE .dwg file, permissions
"1777" avoid the last deleting operation: the file belongs to an other user.
A simple 'chmod -R 777 root:root /home' make all works fine.
Note that in my implementation /home contains the share not the login user
home directories. No user log on the AD controller


These directives in smb.conf seem not to work:

       create mask = 0777
       directory mask = 0777
       force create mode = 0777
       force directory mode = 0777

or - more probably - I mistake somewhere....;-)

Giovanni



----- Original Message ----- 
From: Tom Jermy
To: Info Cambria
Sent: Wednesday, February 12, 2014 10:49 AM
Subject: Re: [Samba] Problem saving AutoCAD files


Hi,


Did you manage to solve this? I am planning on implementing a samba 4 AD
file sharing set up for my organisation & dwgs are a big part of what we do!


Thanks



On 7 February 2014 12:57, Info Cambria <info at cambria.it> wrote:

Hi all,

on my organization I have, on CentOS 6.5 x86_64, Samba 4.1.4 compiled and
installed from source tarball.
Samba acts as AD and fileserver.
The problem is when the users try to save AutoCAD files on a share where all
domain users have R+W rights.
Autocad refuses to save a file formerly saved by another domain user.
The message is: "AutoCAD unable to save drawing as it is being accessed by
another session". Obviously, this is false: there is no other session
accessing the file.
By the way, other kind of file, like Word, Excel, PDF, etc. don't show this
issue.

My smb.conf::

# Global parameters

[global]
       workgroup = MYORG
       realm = MYORG.LOCAL
       netbios name = FILESERVER
       server role = active directory domain controller
       dns forwarder = 8.8.8.8

[netlogon]
       path = /usr/local/samba/var/locks/sysvol/myorg.local/scripts
       read only = No

[sysvol]
       path = /usr/local/samba/var/locks/sysvol
       read only = No


# common share

[condivisa]
       # this is the share where I have problems with AutoCAD files
       path = /home/condivisione
       read only = no
       create mask = 0777
       directory mask = 0777
       force create mode = 0777
       force directory mode = 0777


# user share

[j.smith]
       path = /home/j.smith
       read only = no

[t.hill]
       path = /home/t.hill
       read only = no

[l.dicaprio]
       path = /home/l.dicaprio
       read only = no

Any ideas?
Thanks in advance and sorry for my english :-)


Giovanni





More information about the samba mailing list