[Samba] Permissions and security

Liutauras Adomaitis liutauras.adomaitis at gmail.com
Tue May 26 10:07:10 GMT 2009


On Tue, May 26, 2009 at 12:13 PM, Dennis Duggen
<dennis at riberhusprivatskole.dk> wrote:
> Hi list
>
> I have trouble setting up the system permissions to be secure. Here my
> basic setup.
>
> 2 groups: users and staff
>
> /home/user should have the permissions user:users rwx------
> /mnt/staff should have the permissions user:staff rwxrwx---
> For the last one users should'nt have access.
>
> I test with fx.: user=staffuser, primarygroup: users, member of group: staff
>
> If i setup the permissions to the above suggested i can create files but
> can't change them. So it seems i have the right permissions to create
> files but afterwards i don't. The files are created with the right
> permissions, username and group: staffuser:staff.
> So why can't the staffuser who is in the staff group access the files
> after initial creation.
>
> The only solution i could find was to set permissions to 777. And that
> can't be right.
>
> My smb.conf: http://pastebin.com/m4a04dfd2

I don't see any share for /home/user and /mnt/staff in your smb.conf.
If create file in a share, what system permissions do you get? Paste rwx style.


More information about the samba mailing list