Setting up Samba Shares

Configuration file tips.

Once you have Samba installed, you will need to set up your samba configuration file.

The things that I found interesting were

These three enabled all new files saved on the server to have the same access rights so that directories could be shared successfully.  Without these we found that only the creator of the file would have read/write access.

This was useful when using an access database, without it we found that we could not open a database concurrently which is a bit of a blow!

Here's an example of ours (with exact names changed to protect the innocent):

[data]
        comment = Shared data
        writable = yes
        browsable = yes
        force create mask = 0775
        force directory mode = 0775
        force group = data_users
        path = /share/data_files
        veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/
        create mask = 0775

[git]
        comment = Git Repositories
        writable = yes
        browsable = yes
        force create mask = 0775
        force directory mode = 0775
        force group = git_users
        path = /share/gitrepo