February 14, 201214 yr Hi there - searched briefly, but I haven't been able to find anything here, so I'm sorry if I'm repeating an old topic. Is there a way to set a "default" set of smb options for the user shares? I have been battling a problem with file ownership and permissions on my box (mostly to do with files I put on there and allowing sickbeard to manipulate them). When I copy a file to a share on the server through my user account, it is owned by my account, and has the default permissions. I would like all files added to the server to be owned by nobody (the sickbeard user), and have the permissions 666. I managed to do this through a custom share by adding the following lines to the config in smb-extra.conf. force create mode = 0666 force directory mode = 0777 force user = nobody force group = users create mask = 0666 I tried to do the same to the user share config in /etc/samba/smb-shares.conf, but as soon as I try and restart network sharing through the web gui, it overwrites the file and my changes are erased. Is there a way to add config entries to the user shares that won't get blown away? Cheers, whiteatom
February 14, 201214 yr Author Managed to solve my own problem.. just had to think about it a bit differently. Instead of modifying the user share smb conf.. I added a [Global] section to the smb-extra.conf. For those interested: To force a user and permissions on all files copied to all shares on your box, add the following lines to /boot/config/smb-extra.conf [Global] force create mode = 0666 force directory mode = 0777 force user = nobody force group = users create mask = 0666 I would still be interested in a better solution so that I can control this user share by user share. I could see a "Custom SMB Config" field in the share settings section being very useful in the future. Cheers, whiteatom
Archived
This topic is now archived and is closed to further replies.