Hi,
I'm having some permissions issues for a samba share. If I create the file from the client side of the share, it's not problem because the user is the owner. I run into issues when the root user creates a file or directory. It leaves out the write permission bit for the group when creating files and directories. So the client side of the samba share can read the files but can't write to them.
Is there a way to specify recursive permissions that inherit the parent directory permissions?
I've used g+s and that didn't get me far. I end up with locked files and non-writable.
My samba config looks like this:
$this->bbcode_second_pass_code('', '[media]
comment = Automounted Drives Share
writable = yes
valid users = @wheel
path = /media
create mode = 0770
directory mode = 2770')
My /media permissions look like this:
$this->bbcode_second_pass_code('', 'drwxrws--- 4 root wheel 4096 Mar 30 01:10 media')
All users accessing the /media share are in the wheel user group.
I'm automounting usb drives to the /media directory using udev and udisks2. So drives are mounted per drive label. It's kind of useless to share them if no one can write to them though. All I need is to have read/write/execute permissions on any drive I plug in that will be automounted under /media. Sorry for the rambling....it's late. Please help.
Thanks in advance.