Setting up Samba Shares

Configuring your smb.conf

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

The things that I found interesting were

  • Force Group
  • Force Directory mask
  • Force Directory mode
  • Create mask

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.

  • veto oplock files

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

Merlin engine logo

The data revolution is here.

Merlin THE API builder for developers. Test it now

Get VIP access