[Samba] group based login scripts other thatn primary(was
ifmember.exe)
Barry Smoke
barry at arhosting.com
Thu Mar 21 14:41:03 GMT 2002
Thanks everyone for the responses, but this seems like a very
complicated solution, where samba could simply answer a ifmember.exe
with every unix group that user belongs to...
has anyone poked around with ifmember.exe from the nt resource kits?
could another DOS program be written to ask samba about what groups a
user belongs to?
We have customized our smb.conf files, and login scripts to a point to
where I really would rather stay away from dynamically generated ones.
On Thu, 2002-03-21 at 11:38, John Benedetto wrote:
> --On Thursday, March 21, 2002 9:18 AM -0600 Barry Smoke
> <barry at arhosting.com> wrote:
>
> > This is one of the only drawbacks I've found so far, is that you can't
> > do log-in scripts based on a person's membership to group other than
> > their primary group.
> >
> > Or did I miss something?
>
> Yes.
>
> There are a number of resources detailing how to do this... here is one
> online: http://www.phonax.com/fileservers/index.shtml and Richard Sharpe's
> Que Special Edition Using Samba book also has details.
>
> In a nutshell: do a root pre-exec to execute a script - be it Perl, or
> shell, or whatever your preference. That script dynamically builds a logon
> script, on the fly, for the user. One of the things you can do is have the
> script walk through the /etc/group file, and pull 'secondary' memberships,
> for logging in. That batch file is then sent down to the client during
> logon, and executed on the client side.
>
> - john
More information about the samba
mailing list