How to adjust samba permissions?

Questions about file sharing through NFS/CIFS/AFP? Post it here!
Forum rules
This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu

How to adjust samba permissions?

Postby jimoe » Thu Apr 12, 2012 10:48 pm

ds411 +ii
dsm4.0-2198

I am having considerable difficulty with the resulting permissions on shared folder contents when using samba-connected hosts. The resulting permissions have been all over the place.

When I use a linux host (opensuse v12.1), the fstab entry has "file_mode=0664,dir_mode=0775". These are ignored; they end up being 0644 and 0755, not good for shared folders.

The usual solution is to modify the allowed permissions in smb.conf. Unfortunately there is no such configuration file in DSM.

When I use a windows host (winXP sp3), the resulting permissions are 0777 for everything. It is quite annoying to have the executable bit set on non-executable files.

When I use a MAC host (macos 10.7), the resulting permissions may be 0006 or 0007 or 0070, and sometimes 0777. Just weird.

Is there a way to set the default permissions to 0664 and 0775 for all hosts mounting volumes with CIFS/SMB?
jimoe
I'm New!
I'm New!
 
Posts: 9
Joined: Wed Feb 29, 2012 11:31 pm

Re: How to adjust samba permissions?

Postby davelx » Thu Apr 19, 2012 2:29 pm

smb.conf is in /usr/syno/etc

unfortunately most changes you make to it do not survive a restart, for some reason. Thisis a real PITA!
davelx
Trainee
Trainee
 
Posts: 18
Joined: Thu Aug 26, 2010 3:03 pm
Location: London


Return to File Sharing: Windows, Mac OS X, Linux

Who is online

Users browsing this forum: No registered users and 3 guests