[Samba] %g Variable of smb.conf

Sebastian Knieschewski s.knieschewski at uib.de
Thu Apr 5 11:16:07 GMT 2007


I planned to use the %g Variable in the "template homedir" section, but 
this Variable only gives me the gid, not the name of the group as 
mentioned in "man smb.conf".

Anyway, if I use %g or %G no difference.

   interfaces = eth0
   bind interfaces only = true
   workgroup = WG
   realm = WG.LOCAL
   security = ads
   password server = vmix7.WG.LOCAL
   winbind separator = +
   winbind enum users = yes
   winbind enum groups = yes
   idmap uid = 10000-20000
   idmap gid = 10000-20000
   template shell = /bin/bash
   template homedir = /home/%D/%G/%U
   client schannel = no
   logfile = /var/log/samba/log.%m
   obey pam restrictions = yes
   encrypt passwords = true
   comment = Home Directories

vmix33:~# getent passwd|grep knieschewski

vmix33:~# getent group|grep 10011 

Any ideas? Where's my fault? Wrong docu?



More information about the samba mailing list