PDA

View Full Version : Variable share for samba as PDC


Xanchez
9th March 2006, 12:17
Hi forum.
I have used the guide to get samba working as domain controller, worked fine, thx ;)

Now i am trying to create a share that is variable according to the group membership.

My share looks like this:
[gruppe]
comment = All Users
path = /home/shares/%g
valid users = @regnskab @produktion
create mask = 0660
directory mask = 0771
force group = regnskab
writable = yes


My problem is, that it looks like the command "force group" redefines %g.
I have tried several combinations, but i can't seem to not define any group in "force group".
I have tried deleting that line, without any result.

I would like the share to work lige this:
[gruppe]
comment = All Users
path = /home/shares/%g
valid users = @regnskab @produktion
create mask = 0660
directory mask = 0771
force group = %g
writable = yes

but it looks like "force group" has to be defined by a static value!?
My smb.conf can be found @ http://rafb.net/paste/results/DP7g4B35.html

Does anybody have an idea, how i can make this work?

Regards Xanchez.

Xanchez
10th March 2006, 09:10
Updated with conf file ;)

till
10th March 2006, 10:19
The "force group" variable in smb.conf is optional. If you remove it the files where written with the group the logged in user belongs to :confused:

Xanchez
10th March 2006, 11:44
The "force group" variable in smb.conf is optional. If you remove it the files where written with the group the logged in user belongs to :confused:
It seems like it is not optional...
When i remove the line, login is no further possible...
I am now taking another approach to the problem, but i am still interrested in finding a solution for the original problem ;)

rsinfo
16th June 2006, 03:30
It seems like it is not optional...
When i remove the line, login is no further possible...
I am now taking another approach to the problem, but i am still interrested in finding a solution for the original problem ;)

I am facing the same problem & would be interested in workaround deployed by you.