On 17/01/2023 19:48, Gilles via samba wrote:> On 17/01/2023 17:08, Rowland Penny via samba wrote:
>> ========>>> c:\Users\joe\Downloads>net view
>>> System error 1231 has occurred. The network location cannot be
reached.
>>>
>>> c:\Users\joe\Downloads>net view \\samba
>>> System error 53 has occurred. The network path was not found.
>>> ========>> Ah, 'net view' depends on SMBv1 and that
is going away. I think we
>> need to see your smb.conf, so we can advise you on what should be in
>> it when you upgrade to Debian 11 from stretch.? Or to put it another
>> way, I think you need to find another way of doing what 'net
view' is
>> doing now.
>
> I posted it in my first original message:
So you did and I commented on it, sorry its been a bad day.
As I pointed out, you need SMBv1 everywhere for 'net view' and that is
very insecure and turning it on will only buy you time. Samba is working
hard on removing SMBv1, so you are postponing the inevitable.
>
> ==================> [global]
> ??????? bind interfaces only = Yes
> ??????? interfaces = 192.168.0.15/255.255.255.0 127.0.0.1/255.255.255.255
> ??????? domain master = Yes
> ??????? os level = 255
> ??????? preferred master = Yes
> ??????? load printers = No
> ??????? printcap name = /dev/null
> ??????? guest account = www-data
> ??????? map to guest = Bad User
> ??????? security = USER
> ??????? wins support = Yes
> ??????? idmap config * : backend = tdb
> ??????? printing = bsd
> ??????? hosts allow = 127.0.0.1 192.168.0.0/24
> ??????? hosts deny = 0.0.0.0/0
>
> [sdcard]
> ??????? path = /mnt/sdcard
> ??????? create mask = 0775
> ??????? guest ok = Yes
> ??????? read only = No
> ==================>
> Surely, someone came up with a SMB2/3-based rewrite of net.exe so batch
> files keep working.
Not that I am aware of, though I think there is a powershell script out
there for some of it, the bits that don't need SMBv1.
Rowland