Il 21/02/20 13:02, Rowland penny via samba ha scritto:> On 21/02/2020 11:39, Roberto Tagliaferri - Tosnet srl via samba wrote:
>> This is an extract of smbstatus
>> root at robytnuovo~# smbstatus |grep 246
>> 1877????? emissionefatture? emissionefatture? 192.168.0.246
>> (ipv4:192.168.0.246:49701) SMB3_00
> root preexec is running the /usr/bin/log_access.php script, passing the
> following parameters:
> "%L" : server NetBIOS name
> "%U" : session username
> "%G" : users primary group
> "%S" : share name
> "%I" : client IP address
> "%m" : client NetBIOS name
>
> ON
>
> I wonder if this problem is because you are using SMBv3 ?
>
Hi, thank you for the answer.
Can i (try to) set client ipc max protocol to NT1 for this
share?> What is in the log_access.php script ?
>
A simple echo to a file and the an insert to a db:
$L=$argv[1];??? # nome NetBios del server samba
$U=$argv[2];??? # nome utente
$G=$argv[3];??? # gruppo dell'utente
$S=$argv[4];??? # nome del dominio
$I=$argv[5];??? # IP del client
$m=$argv[6];??? # nome NetBios del client
$O=$argv[7];??? # ON/OFF
system ("echo ".date('d/m/Y H:i')." $L $U $G $S $I $m $O
>>/var/log/log_accessi.log");
$sql=pg_query("insert into accessi(username,log,pc)
values('$U','$O','$m');");
> Rowland
>
>
>
--
TosNet.it
Roberto Tagliaferri
Responsabile Progettazione & Produzione
TosNet s.r.l. - Internet Service Provider
*Office*: +39 0574 875 100
*Mobile*: +39 329 591 3899
*Fax*: +39 0574 875 199
*Email*: r.tagliaferri at tosnet.it <mailto:r.tagliaferri at tosnet.it>
*Web*: www.tosnet.it <http://www.tosnet.it>
*Skype*: ilrobyt <skype:ilrobyt?call>