LinuxQuestions.org
Help answer threads with 0 replies.
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 08-30-2008, 02:07 PM   #1
teixeira
LQ Newbie
 
Registered: May 2008
Location: Portugal
Distribution: debian/ubuntu/opensuse
Posts: 3

Rep: Reputation: 0
SAMBA + ADS + users and groups problems


Hi,

I configured Samba 3 + Windows AD access in ubuntu 8.0.4 and i got it working, at least i do a "wbinfo -u" or "-g" and i can see AD Groups and Users correctly.

The problem is that i guess these existing groups and users didn't figure yet inside /etc/passwd and /etc/group because when using the "getent" command only the native linux users and groups are displayed.

Due this i cannot setup samba shares with Domain permissions correctly.

Anyone know if i miss some step or what you i do to "pump" AD users and groups to be available in my machine and then use it to set the apropriate permissions in my files and folders?

Thank you very much,
Best regards,
Teixeira
 
Old 09-03-2008, 12:48 PM   #2
jackpal
Member
 
Registered: Oct 2003
Location: Florida USA
Distribution: Fedora, RHEL
Posts: 57

Rep: Reputation: 15
I believe you can set groups for each share in the smb.conf. Here is something from the man pages.

force group (S)
This specifies a UNIX group name that will be assigned as the default primary group for all users connecting to this
service. This is useful for sharing files by ensuring that all access to files on service will use the named group for
their permissions checking. Thus, by assigning permissions for this group to the files and directories within this ser-
vice the Samba administrator can restrict or allow sharing of these files.

In Samba 2.0.5 and above this parameter has extended functionality in the following way. If the group name listed here
has a ’+’ character prepended to it then the current user accessing the share only has the primary group default
assigned to this group if they are already assigned as a member of that group. This allows an administrator to decide
that only users who are already in a particular group will create files with group ownership set to that group. This
gives a finer granularity of ownership assignment. For example, the setting force group = +sys means that only users
who are already in group sys will have their default primary group assigned to sys when accessing this Samba share. All
other users will retain their ordinary primary group.

If the force user parameter is also set the group specified in force group will override the primary group set in force
user.

Default: force group =

Example: force group = agroup
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba 3 and ADS connection problems Munix Linux - Software 1 05-26-2006 06:53 AM
Samba, Kerberos and ADS problems deadlock Linux - Networking 0 01-26-2006 11:27 AM
Samba Users & Groups Privileges Bilal84 Linux - Networking 3 10-11-2005 08:31 AM
share for groups on samba 3 - ADS doesn't work ceixxx Linux - Software 0 11-06-2004 05:13 PM
SAMBA....mapping users and groups TheTrexx Linux - Networking 0 01-20-2003 01:10 PM

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

All times are GMT -5. The time now is 03:41 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