[LUGSB] A Samba question

Sarang Lakare sarang at users.sourceforge.net
Sat Nov 9 14:44:53 EST 2002


Hi guys,

I have a question which I hope someone can answer.

This is my setup:

5 Linux boxes authenticating against a Win2k domain controller (using 
windind/Samba 2.2.6)

Now I want to share a directory from one of the Linux boxes. So I setup a 
share as follows:

[CVS]
        comment = CVS Repository
        path = /data/public/cvs
        force group = cvsusers
        read only = No
        case sensitive = Yes
        mangle case = Yes
        wide links = No

My goal is to allow only users of "cvsusers" group to be able to access this 
CVS repository. So I created the group "cvsusers". Now since I authenticate 
the users against the Win2k PDC, I have not created any users on the Linux 
boxes. The UID/GID are mapped automatically by winbind.

So my question is : How do I allow access to only a select people to access 
this directory? In other words, how do I assign certain winbind users to this 
unix group?

As of now, Anybody who can login to this machine can access the share w/o 
problems. When they create a directory/file, it is created with their 
username and the "cvsusers" group. So the force group is definitely working.

What I have tried so far:
I did "force group = +cvsusers", and added our login names to the group in the 
/etc/groups file. But this does not work.

I tried to use the "valid users" option .. but that dosn't seem to work 
either. So I want to know what is the right way to do this. 

Regards,
Sarang

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sarang Lakare
mailto:sarang at users#sourceforge.net
web:http://www.cs.sunysb.edu/~lsarang/linux
!!Join the fight for freedom - Go GNU/Linux!!



More information about the lugsb mailing list