[Samba] %g Variable of smb.conf

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


Hi,

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.

[global]
   interfaces = 127.0.0.1 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
  
[homes]
   comment = Home Directories
[..]


vmix33:~# getent passwd|grep knieschewski
WG+knieschewski:*:10000:10011:Sebastian 
Knieschewski:/home/WG/10011/knieschewski:/bin/bash

vmix33:~# getent group|grep 10011 
WG+edv:x:10011:

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

Regards

Sebastian


More information about the samba mailing list