[CentOS] [Samba] User permissions, simple doc ?

Eero Volotinen eero.volotinen at iki.fi
Tue Jan 26 10:14:08 UTC 2010


2010/1/26 mistofeles <ptmusta at utu.fi>:
>
> Is there some simple documentation about how to set the user permissons in a
> Samba server ?
>
> In my server I have the permissions like this:
> drwxrwx---  3 mydemo domain users 4096 2009-12-29 08:19 mydemo
> Now the other users can not read nor write to this directory.
>
> If I copy this directory anywhere, anybody can read and write there. (I have
> my reasons to make a copy)
> Is there any way to make these directories PRIVATE to the owner only ?
> I have tried chmod and chown with various values .
>
> In smb.conf I have:
> [%U]
>        comment = Own home dir
>        path = /home/%U
>        writeable = yes
>        valid users = %U
> [BCK]
>        comment = Here I copy the home dirs
>        path = /BACKUP/backup
>        browseable = yes
>        read only = yes

Use acl on filesystem, see examples at:
http://www.vanemery.com/Linux/ACL/linux-acl.html

--
Eero,
RHCE


More information about the CentOS mailing list