Computing.Net > Forums > Linux > File/Samba Permissions troubles

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

File/Samba Permissions troubles

Reply to Message Icon

Name: Derek
Date: April 8, 2002 at 11:38:44 Pacific
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Solo
Date: April 8, 2002 at 11:45:12 Pacific
Reply:

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


0

Response Number 2
Name: Solo
Date: April 8, 2002 at 11:48:37 Pacific
Reply:

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


0

Response Number 3
Name: Derek
Date: April 8, 2002 at 12:20:19 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: File/Samba Permissions troubles

Samba - permissions on folders... www.computing.net/answers/linux/samba-permissions-on-folders/14568.html

Samba Auth Trouble www.computing.net/answers/linux/samba-auth-trouble/4332.html

File system permissions www.computing.net/answers/linux/file-system-permissions/13526.html