Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,
I'm having problems with file/folder permissions on a Mandrake 8.1 Samba server. I have a samba share set up called "workarea". The "prod" group is set up as the valid users in smb.conf. I did this on the workarea directory - set the group ownership to "prod" and did chmod -R 2770 /home/workarea. I want all users in the prod group to have full rights to everything in the workarea folder. Whenever a user creates a folder, the group ownership stays as "prod" but the group permissions change to read-only. How do I maintain 770 permissions throughout the entire directory structure in the "workarea" folder?
smb.conf snippet:
[workarea]
comment = CKUA Production Workarea
path = /home/workarea
admin users = admin dloewen
valid users = @prod
public = no
guest ok = no
writable = yes
read only = no
create mask = 2770

Hi,
I just overflew your post but I think
your problem is the mask option.See,
the mask means it takes 777 minus the mask
and thats the permissions. Example:
mask=222 --> 777 minus 222 (binary)
is 7-2 7-2 7-2 is a chmod of 555 --> readonly
for everyone. You probably what mask=007
which would result in a permission 770
Maybe verify with the 'man smb.conf'Good luck,
Solo

I'm sorry - I think mask takes a 888 as the
base to subtract from, you got to check
with the 'smb.conf'.
Sorry,
Solo

Thanks,
You were right about the mask. The command should be "create mode = 2770" not "create mask". Also I put in "inherit permissions = yes". Everything OK now.
Thanks again

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |