Variable share for samba as PDC

Discussion in 'HOWTO-Related Questions' started by Xanchez, Mar 9, 2006.

  1. Xanchez

    Xanchez New Member

    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:
    Code:
    [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:
    Code:
    [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.
     
    Last edited: Mar 10, 2006
  2. Xanchez

    Xanchez New Member

    Updated with conf file ;)
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    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:
     
  4. Xanchez

    Xanchez New Member

    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 ;)
     
  5. rsinfo

    rsinfo New Member

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

Share This Page