[Samba] variable substitution

Piviul piviul at riminilug.it
Fri Nov 13 11:22:21 UTC 2020


Marco Gaiarin via samba ha scritto il 03/11/20 alle 16:22:
> Mandi! Piviul via samba
>    In chel di` si favelave...
> 
>> smb ports parameter; in effect in man smb.conf I can read: This parameter is
>> not available when Samba listens on port 445. There is no way yo have the
>> client name? All %m, %M, %I contains ip address...
> 
> No and yes.
> 
> No, because effectively SMB2+ does not pass anymore host name;
In my smb.conf the "log file" parameter is set to /var/log/samba/log.%m. 
Do you know why in /var/log/samba for the same PC sometimes the logs are 
memorized in log.<ip address> and sometimes in log.<netbios name>?

Piviul



More information about the samba mailing list