Force group ?
Rafał Szcześniak
rfs at aw.com.pl
Tue Sep 7 10:58:21 GMT 1999
Alan Hourihane wrote:
>
> Following on from this - I can't get force group to
> work at all in 2.0.5a. It completely ignores the line.
>
> Any clues ?
>
> This is my share setup.
>
> By default users primary group is 'users'.
>
> [telco]
> path = /samba/telco
> force group = telco
> force create mode = 0770
> force directory mode = 0770
> create mask = 0770
> valid users = root, @telco
> write list = root, @telco
> guest ok = no
> browseable = yes
>
Try to use:
force group = +telco
This forces group 'telco' only when current user
accessing this share is member of group 'telco'.
Of course use also:
valid users = root, @telco
or:
valid users = @telco (when root is simply added to @telco)
This works for me (Samba PDC 2.0.5a)
Greetings :-)
Rafał
> Alan.
>
> -----Original Message-----
> From: Alan Hourihane [SMTP:alanh at pinacl.co.uk]
> Sent: 06 September 1999 11:02
> To: Multiple recipients of list SAMBA-NTDOM
> Subject: Force group ?
>
> I have a number of users with home directories
> under /home/????. Their default group is users.
>
> I need to make some of these directories available
> for other users, so I've created a group that's actually
> the same as the users name of their home directory.
>
> For example,
>
> drwxrwx... georgef georgef ......
>
> Then, I add a bunch of users into that group in /etc/group.
>
> georgef:500:x:georgef,paulw,ianp
>
> etc,etc.
>
> It works and people can get to his home directory, but....
>
> When another user saves a file into georgef's directory
> it gets created with georgef's primary group which is 'users'
> and I don't want that.
>
> I've tried using
>
> force group = %u or %U
>
> in the samba config, but thinking again that won't work.
>
> Anyone any ideas ?
>
> Alan.
More information about the samba-ntdom
mailing list