Koozali.org: home of the SME Server

SAMBA configuration for DACEASY accounting software

Peter Walter

SAMBA configuration for DACEASY accounting software
« on: December 13, 2002, 09:14:52 PM »
All,

I am trying to configure SAMBA in E-Smith 5.5 to properly run DACEASY accounting software in multi-user mode using Windows 98 / Windows 2000 / Windows. When DACEASY needs to give a user exclusive access to a file, it attempts to change the file to "read-only". With the standard SAMBA config, the attempt is ignored because if SAMBA determines that the user has WRITE permission to the file, the request to set the "read-only" flag is ignored. DACEASY then complains that it is unable to set the file attributes and quits. I have researched newsgroups about this problem, and found the following recommendations to fix the problem in the SAMBA share:

[begin quote]
You need to set the DOSFILEMODE=YES for the shares you want to use it on. You also need to combine this with  "FORCE GROUP" and :FORCE SECURITY MODE"  to make sure that the group is forced to one that has write access to these directories. Then you want to force the group members to have write permissions to the files. This will let the DOSFILEMODE magic do its work. You also want to force  the DIRECTORY CREATION MASK to be 2775 (or setGID) so that any new files created will inherit the directory group, and not the user's group, forcing it to stay in line with the above group constraints.
[end quote]

The DOSFILEMODE setting I understand, but as a LINUX newbie, I am hesitant to change the other settings because I do not fully understand how to mask the necessary permissions for FORCE GROUP and FORCE SECURITY MODE, nor do I know how to force the DIRECTORY CREATION MASK. Could a more experienced user let me know what the necessary commands are?

Thanks
Peter

Mark

Re: SAMBA configuration for DACEASY accounting software
« Reply #1 on: December 16, 2002, 09:59:34 PM »
Hi

unfortunately I'm not that much more experienced than you are so I cant offer any real advice however you may learn something from looking at a list of the commands for smb.conf at

http://www.oreilly.com/catalog/samba/chapter/book/appc_01.html

you can see exactly how your samba is setup by typing testparm to view or by pipeing it to a file by "testparm > /somedirectory I can access/testparm.txt "

My understanding is that you can edit smb.conf to your hearts content and restart samba with a /etc/init.d/smb restart to try out your changes but because of the templating system your changes will be lost when you reboot. There is a newer post by me on how I disabled the templating system for smb.conf (if I was clever/not lazy I would do it through custom template fragments)

let me know if you make any progress as I have several different databases that I need to optimise on samba over the next month or two

cheers

Mark