Samba Public Folder Permissions
I have a Samba server with a Public folder. Inside the Public folder, there are subfolders belonging to various groups. I need a way to make sure that any files or folders created or edited within these subfolders ALWAYS take on the permissions of the parent folder - Is that possible? How?
How about 'force create mode' or 'force directory mode' for the share:
Under linux set the SGID on the folder. The folder perms will look like this e.g rwxrwsr_x folder. Make sure that the users u want r placed in the correct group. Use the cmd chmod g+s folder or chmod 2??? folder.
I tried creating a shared directory. I created the group project. Added several users to the group. Changed the permissions on the directory with chmod 770 /home/project. Then I set the SGID wit chmod g+s /home/project. I tried logging in as one of the users and they get permission denied. What am I doing wrong? Help please. Thanks in advance.
Instead of using sgid for the above action, you should use force group = project in smb.conf. Pls see below for an example:
comment = Project shared folder
path = /home/project
read only = yes
write list = @project
create mask = 0660
directory mask = 0770
force group = project
Hope this help!
|All times are GMT -5. The time now is 07:30 AM.|