[Samba] Group Login Scripts in Samba 2.2.3?

John Benedetto jbenedet at unm.edu
Thu Mar 28 16:49:02 GMT 2002


--On Wednesday, March 27, 2002 9:11 PM +0000 "K. Hawkes" 
<k.hawkes at zombies.force9.net> wrote:

> It's my aforementioned C program with some modification, it will create a
> dynamic-on-the-fly login script which you can
> then use to call group logins from,  When the program detects a user is
> in a group, it adds a few lines to the %U.bat login script to
> call out to the group login scripts for that group (if they exist).  The
> same thing can be accomplished with the Perl scripts which are on the URL
> I was given (I will take a look for it later).  However the perl scripts
> only work if the user is listed in the group in /etc/group, it fails if
> the user is only in 1 group.  E.g.

Yes, but with the preexec command, you *CAN* use subsitution, and *THAT* 
will enable you to find what the "default" group of a user is!

- john




More information about the samba mailing list