[Samba] deny second or multiple logins
Marcus Sobchak <lists at localguru.de>
lists at localguru.de
Sun Apr 1 14:31:19 GMT 2007
Am Sonntag, den 01.04.2007, 10:49 -0300 schrieb Freitas:
> > I'd like to deny multiple logins to a samba domain. I already searched
> > the archive and found some threads about it. This one seems to be a good
> > idea:
> > http://lists.samba.org/archive/samba/2006-April/119867.html
> > Does anyone know where to find such scipt examples?
> You can try here.
Ah, great link. I was playing with smbstatus in these minutes :-) I'd
like to put the preexec script paramteter to global or to netlogon
section, not to a user's share section. What's best location?.
At my netlogon section there is already the following line to create
dynamic login scripts:
root preexec = /usr/local/bin/make_logon_script '%m' '%U' '%a' '%g' '%
How do I combine these two lines? The script PermitSingleLogon.sh should
be executed before my old make_logon_script and if the return is 1 the
login process should be aborted completely.
More information about the samba