NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

mjleonard's avatar
mjleonard
Aspirant
Jul 27, 2016

Share permissions (samba force user/group)

I have been running os6.5.0 on my old ultra6 for some time now, and everything seems to be going well. I am however trying to setup a CIFS share so that regardless of user account used to connect, the files are saved under a specified user/group.

 

I believe this would be the samba 'force user' and 'force group' configuration lines at the share level in a standard samba.conf. Is there any way to set this from the GUI?

 

Detailed use case:

 

I have dropbox running on the nas as user X under the share Dropbox, I have this share set so that anyone in group Y can read/write. Lets say user Z from group Y writes to the Dropbox share, the file is written and the ownership is set as user Z - this unfortunately causes the file not to be syned with dropbox. I want that a file written by any user in group Y is actually saved to disk as user X.

 

Thank you in advance.

 

Best regards,

Matthew

1 Reply

Replies have been turned off for this discussion
  • kohdee's avatar
    kohdee
    NETGEAR Expert

    You can make modifications to the Samba share using /etc/frontview/samba/smb.conf.overrides

     

     

    [Share]
       path = /data/Share
       force user = root
       force group = root
    [global]

    Make sure Share matches your share from your config (can doublecheck testparm or look at /data/._share/Share/samba.conf, or /etc/frontview/samba/Shares.conf). Also, don't forget the [global] at the end. 

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More