Proskurin Kirill
2008-Dec-18 08:41 UTC
[Samba] Run script ON SAMBA host - then client log in.
Hello all. If it is possible to run script on samba host then client logon? I need run script on every client login and add as variable to this script clients login name and IP. -- Best regards, Proskurin Kirill
Deyan Stoykov
2008-Dec-18 10:04 UTC
[Samba] Run script ON SAMBA host - then client log in.
Proskurin Kirill wrote:> Hello all. > > If it is possible to run script on samba host then client logon? > I need run script on every client login and add as variable to this > script clients login name and IP.Look for "preexec"/"root preexec" in the smb.conf man page. If your users are doing domain logons, then you can use the [netlogon] service, as it is always connected at domain logon. Use %I and %u to substitute the login name and IP address. HTH, -- Deyan Stoykov, dstoykov@ru.acad.bg University of Rousse, BG-7017
Daniel Müller
2008-Dec-18 10:24 UTC
AW: [Samba] Run script ON SAMBA host - then client log in.
Hello, in the [homes] section You need at fist root preexec= yourscript within this script you can handle smb vars greetings Daniel ----------------------------------------------- EDV Daniel M?ller Leitung Edv Tropenklinik Paul-Lechler-Krankenhaus Paul-Lechler-Str. 24 72076 T?bingen Tel.: 07071/206-463, Fax: 07071/206-499 eMail: mueller@tropenklinik.de Internet: www.tropenklinik.de ----------------------------------------------- -----Urspr?ngliche Nachricht----- Von: samba-bounces+mueller=tropenklinik.de@lists.samba.org [mailto:samba-bounces+mueller=tropenklinik.de@lists.samba.org] Im Auftrag von Proskurin Kirill Gesendet: Donnerstag, 18. Dezember 2008 08:49 An: samba Betreff: [Samba] Run script ON SAMBA host - then client log in. Hello all. If it is possible to run script on samba host then client logon? I need run script on every client login and add as variable to this script clients login name and IP. -- Best regards, Proskurin Kirill -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Proskurin Kirill
2008-Dec-23 09:22 UTC
AW: [Samba] Run script ON SAMBA host - then client log in.
> Hello, > in the [homes] section You need at fist > root preexec= yourscript > within this script you can handle smb varsI try to add this in global settings and in [homes] - nothing work. preexec = echo \"%u connected to %S from %m (%I)\" >> /tmp/log -- ? ?????????, ????????? ??????. ?????? ???????? "?????? ????" 115093, ??????, ??. ?????, 18 +7(495)727-06-26 ???. 1070 www.forexclub.ru