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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sebastian Knieschewski wrote:> 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".Neither %g nor %G are currently supported in the template homedir. There is an open bug for this I think. cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGFO26IR7qMdg1EfYRAhR9AJ9vxkoD7nzF23h2yB6VelwstPAvSgCg0D7L 3iWcIXoQV4Swa9qsp4QtQZ8=JTYi -----END PGP SIGNATURE-----
Gerald (Jerry) Carter schrieb:>> 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". >> > > Neither %g nor %G are currently supported in the template homedir. > There is an open bug for this I think. >Jep, https://bugzilla.samba.org/show_bug.cgi?id=2191 Let me known if you need somebody testing the provided fix. Regards Sebastian