LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   [samba] one share inside of another (force group) (https://www.linuxquestions.org/questions/linux-server-73/%5Bsamba%5D-one-share-inside-of-another-force-group-642697/)

Kacper86 05-16-2008 12:01 PM

[samba] one share inside of another (force group)
 
Hi!
I have some nasty problem and i cannot figure it out. There are 3 places (all of them have its own section in smb.conf):
/home/shares/company
/home/shares/development (force group = dev)
/home/shares/management (force group = man)
Then, there some links:
/home/shares/company/link1->development
/home/shares/company/link2->management

When i connect to the share (/home/shares/development) directly, "force group" works perfectly. However, when I connect to the share (/home/shares/company) and go to the "development" using the link, "force group" doesn't work. I tried "iherit permissions=no" and "inherit group=no", but it doesn't work either. What should i do?

rtspitz 05-16-2008 01:45 PM

that's a good example of why it's worth the effort making these things right on the file system level.

this may help:

Code:

chgrp -R dev /home/shares/development
chmod -R g+s /home/shares/development
setfacl -R -d -m g::rwx /home/shares/development
setfacl -R -m g::rwx /home/shares/development

chgrp -R man /home/shares/management
chmod -R g+s /home/shares/management
setfacl -R -d -m g::rwx /home/shares/management
setfacl -R -m g::rwx /home/shares/management

the setfacl part requires "acl" as a mount option of your filesystem and is just for ensuring files get created "rw-rw----" for sure. the "force group" should be done by chmod g+s.

Kacper86 05-16-2008 01:53 PM

thank you very much!


All times are GMT -5. The time now is 11:01 PM.