LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   pls Help Me about file and folder permission on samba (https://www.linuxquestions.org/questions/linux-software-2/pls-help-me-about-file-and-folder-permission-on-samba-893203/)

j0n1509 07-22-2011 03:33 PM

pls Help Me about file and folder permission on samba
 
Dear All,

i need help for giving permission (acl) on samba. i would like to giving permission like this on a folder :

owner:full access
group:read+execute

for example the owner is jon, group is manager

i used : chown jon:manager myfolder/ -vR, then chmod 750 myfolder -vR, it work find. but when i created a new file/folder under myfolder the permission became like this :

jon:jon newfolder, i want is jon:manager newfolder.

i try to set on smb.conf
inherit permission = yes

but still doesn't work

please help me with this.

thx a lot

T3RM1NVT0R 07-22-2011 05:12 PM

@ Reply
 
Hi there,

Welcome to LQ!!!

That is because you need to set gid bit on the folder. Set the permission on myfolder as:
Code:

chmod 2750 -vR /myfolder
and this will work the way you want.

j0n1509 08-01-2011 09:42 AM

hi T3RM1NVT0R
 
thx a lot for your, i'll try it...


All times are GMT -5. The time now is 10:58 AM.