Hi, Scenario :- User A belongs primarily to GroupA and secondary to GroupB. Somedirectory contains GroupA.conf and GroupB.conf Have anyone got "include = /somedirectory/%g.conf" in smb.conf to work such that scripts in groupA.conf and groupb.conf will be executed when UserA logins? Am I using the correct syntax? If not, what is the correct syntax? I am on Debian with 3.0.10 version of samba. Thanks a lot. adrian
Gerald (Jerry) Carter
2005-Jan-07 13:34 UTC
[Samba] Secondary group problem in include statement
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Adrian Chow wrote: | Hi, | | Scenario :- | User A belongs primarily to GroupA and secondary to GroupB. | Somedirectory contains GroupA.conf and GroupB.conf | | Have anyone got | | "include = /somedirectory/%g.conf" in smb.conf | | to work such that scripts in groupA.conf and groupb.conf | will be executed when UserA logins? | | Am I using the correct syntax? If not, what is the | correct syntax? | | I am on Debian with 3.0.10 version of samba. %g is the primary group only. There is no variable for secondary groups. cheers, jerry - --------------------------------------------------------------------- Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "If we're adding to the noise, turn off this song"--Switchfoot (2003) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB3o/VIR7qMdg1EfYRAkBFAKCjHYZu0NWMPIEI97iBXp5QCZ/B5gCgzXIO O1DRABfdsex7SI5O9tdaDoU=tzZk -----END PGP SIGNATURE-----
Gerald (Jerry) Carter wrote:> %g is the primary group only. There is no variable for > secondary groups.There is a plan in the future of implementing a new variable to support secondary groups? I ask that for doing changes to my smb.conf according to that or search another solution to do what i want or leave it as now instead (now works very well, i only want to tune a bit more...) Thx! Xavi