[Samba] logon scripts by group

Misty Stanley-Jones misty at borkholder.com
Wed Oct 6 15:32:48 GMT 2004


Hi,

I am having a hard time figuring out how to have logon scripts that only 
execute if the user is a member of a certain group.  I had the smart idea of 
putting the supplemental logon script in a share only available to the group, 
and then calling it from the normal logon script using "CALL 
"path_to_script".  However it looks like it always executes that CALL even if 
the user is not part of a group, and I don't want to confuse my users by the 
text that goes into the DOS window that pops up to run the logon scripts.  
Also, somehow I feel like there must be a better way to do this, some way to 
query Samba for group membership as the user logs in.

Also, is there a such thing as a logoff script?  Or do I need to put those 
things in postexec scripts?  (things like "net use /d *")

Thanks for your assistance to this non-Windows user!

Misty


More information about the samba mailing list