Up until 2.2.1a I used to have logon script = %g.bat in my smb.conf, but now I find I need instead # At 2.2.2 we need %G (%g would be root/system?)! logon script = %G.bat Is this a bug (or is it a feature)? Cheers, Paul Szabo - psz@maths.usyd.edu.au http://www.maths.usyd.edu.au:8000/u/psz/ School of Mathematics and Statistics University of Sydney 2006 Australia
On Fri, Nov 30, 2001 at 11:09:10AM +1100, Paul Szabo wrote:> Up until 2.2.1a I used to have > > logon script = %g.bat > > in my smb.conf, but now I find I need instead > > # At 2.2.2 we need %G (%g would be root/system?)! > logon script = %G.bat > > Is this a bug (or is it a feature)?%g is the unix group name of the current connected user, %G is the unix group name of the %U user, which is the username that the client requested, not the one they neccessarily got. Jeremy.
Jeremy,>> Up until 2.2.1a I used to have >> logon script = %g.bat >> in my smb.conf, but now I find I need instead >> # At 2.2.2 we need %G (%g would be root/system?)! >> logon script = %G.bat > > %g is the unix group name of the current connected user, > %G is the unix group name of the %U user, which is the > username that the client requested, not the one they > neccessarily got.Thanks, but I knew about that difference between %g and %G. The odd thing is that %g.bat used to work fine (and was getting expanded to the group of the user logging in), while at 2.2.2 %g.bat expands to system.bat or root.bat (the group of root, what the "primary" smbd daemon runs as). At 2.2.2 I need %G.bat to get the file related to the user; I would prefer %g in case there is a difference. Paul