LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-16-2008, 12:01 PM   #1
Kacper86
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Rep: Reputation: 0
[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?
 
Old 05-16-2008, 01:45 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 33
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.
 
Old 05-16-2008, 01:53 PM   #3
Kacper86
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Original Poster
Rep: Reputation: 0
thank you very much!
 
  


Reply

Tags
inside, samba, share



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Placing a SMB share inside an NFS share grittyminder Linux - Networking 0 05-14-2008 03:49 AM
Samba Share for Group bgeorge Linux - Newbie 2 12-19-2007 10:47 PM
Samba on FC5 won't let me use group share bskrakes Linux - Software 9 12-09-2006 12:10 PM
Samba force user, group doesn't return expected results tisource Linux - Software 1 12-13-2005 12:07 AM
well, there's info written inside /etc/group. accidentally del /etc/group in RedHat9 karmakid Red Hat 1 07-27-2005 10:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration