LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 01-14-2007, 09:16 PM   #1
jonas.sheiakh
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Rep: Reputation: 0
Problems with multiple groups in samba+AD environment


Having some trouble setting permissions on folders on my filserver running

Samba 3.0.23d on a Debian4.0 2.6.8-2-686 installation.
Wich is a member server to a Win2k3 active directory.

Have this DFS setup with

drwxrwx--- 4 administrator domain users 4096 Nov 10 16:35 DFS

Under it i Have Documents with same perms.

Under that i have all the BranchOffic folders, and this is where my problem starts.

User test1 has the following groups

"groups test1
test1 : domain users inter-users testgrp
"

Lets say i have the folder test under Documents

With the permissions

drwxrwx--- 4 administrator testgrp 4096 Jan 11 03:05 test

The problem is i cant access this folder, though the user test1 has the group testgrp in his grouplist.

if i instead switch order of the groups for user test1 to:

"groups test1
test1 : domain users testgrp inter-users
"

Notice i put testgrp as secondary grp now
and test1 will be able to access this folder without problems, so it seems theres some problem with getting the samba/linux server to understand that test1 user has the third group added.

Any1 have any suggestions on how to solve this ? Would be very appreciated as ive been battleing with this problem for a few days now, and really cant find any anwears.

Kind regards, Jonas
 
Old 01-15-2007, 08:10 AM   #2
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
Your post was confusing (especially on an early Monday morning) but, file permsissions are inherited. That is if you have a folder tree and want to give a group access to the third folder down, they must also have access to the root folder. Otherwise they can't access the share. A workaround is to simply set up the groups and let them have their own share and folders.
 
Old 01-15-2007, 11:54 AM   #3
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
If I'm not mistaken-and I could be since it's been awhile since I studied this-the user will access a share as his primary group. Since domain users is a default domain group he was hitting it as inter-users group the first time and testgrp the second.

Try setting ACLs on the folders that make up the shares as in:
Code:
setfacl -R -m g:rwx:testgrp /path/to/shared/folder
where -R is recursive, -m is modify the acl, g is group, rwx is read-write-execute and testgrp is well, the group.
 
Old 01-23-2007, 11:47 PM   #4
jonas.sheiakh
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Original Poster
Rep: Reputation: 0
ok, ive solved this by just removing, the "winbind seperator = +"
from the samba conf so it uses \ as seperator instead.

I just came across this solution while running testparm and it outputted that "winbind seperator = +" could cause group permission problems.
It now works when i just used the default setting, thanks for all the replies
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple groups sharing directory access OnlyNewb Linux - General 2 11-19-2009 11:39 PM
setting up grub in a multiple hard drive multiple OS environment svenwinkle Linux - Desktop 2 10-07-2006 07:50 PM
File with multiple groups? belorion Linux - General 1 09-01-2005 05:45 PM
multiple groups permissions steve007 Linux - Newbie 2 07-01-2005 12:24 PM
Samba problems... multiple connections to a server .... ccool Linux - Networking 0 06-03-2003 03:47 PM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration