Page 3 of 3

Re: LAN File Sharing on AVLinux MX Edition

Posted: Sun Mar 12, 2023 6:55 pm
by siabost9deas
@FullScale4Me,

A similar warning to

Code: Select all

smbtree

Code: Select all

kenny@HP-Music-PC:~
$ smbclient -L localhost
Enter WORKGROUP\kenny's password: 

	Sharename       Type      Comment
	---------       ----      -------
	print$          Disk      Printer Drivers
	IPC$            IPC       IPC Service (Samba 4.13.13-Debian)
	kenny           Disk      Home Directories
	Music-Share     Disk      
	Public-share    Disk      
	Public          Disk      
Reconnecting with SMB1 for workgroup listing.
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Unable to connect with SMB1 -- no workgroup available

Re: LAN File Sharing on AVLinux MX Edition

Posted: Mon Mar 13, 2023 12:29 am
by FullScale4Me
I noticed in your previous post in this thread that you had two Ubuntu PCs.

I just did some testing (with smbclient) in Virtual Box with Ubuntu 22.10 (desktop ed). If the login account has NOT been added to the SMB id database AND a SMB password set it will throw an error rather than list shares, even in a local context --- '....NT_STATUS_IO_TIMEOUT...' stands out.

Extraneous technobabble only a programmer could love deleted from the error message (the leading ... and trailing ...). Yeah, 'old school' editing form, what I was taught in the mid-'60s!

Re: LAN File Sharing on AVLinux MX Edition

Posted: Mon Mar 13, 2023 12:37 am
by CharlesV
siabost9deas wrote: Sun Mar 12, 2023 6:41 pm @CharlesV

Code: Select all

smbtree
on one of the AVLinux seems to reveal an error, if I read it correctly ('No compatible protocol selected by server')?

Code: Select all

 AV Linux MX Edition
kenny@HP-Music-PC:~
$ smbtree
Enter WORKGROUP\kenny's password: 
WORKGROUP
	\\               		Kenny-Main-Laptop server (Samba, Ubuntu)
		\\\               	Kenny-Main-Laptop server (Samba, Ubuntu)
		\\\DLINK-SHARE    	DNS-320L
		\\\HP-MUSIC-PC    	Samba 4.13.13-Debian
	\\DLINK-SHARE    		DNS-320L
		\\DLINK-SHARE\Volume_1       	
		\\DLINK-SHARE\IPC$           	IPC Service (DNS-320L)
		\\DLINK-SHARE\lp             	USB Printer
	\\HP-MUSIC-PC    		Samba 4.13.13-Debian
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
smbc_opendir: Invalid argument
So it looks like your two computers have different samba protocols and cannot talk to each other. I saw no server protocol specified, so it probably went to SMB3.. I think I would try in both computers /etc/samba/smb.conf files setting, I use:

Code: Select all

  workgroup = CEO
   client min protocol = COREPLUS
   server max protocol = SMB3
   name resolve order =  host wins bcast lmhosts 
   wins support = yes


I also always set my host files to show my machines I want to look at, I find it works faster and is stable ! But supposedly the proper name resolve is

Code: Select all

 name resolve order =  bcast wins host lmhosts


Also, I dont see any drives shared on your computers, and according to the samba docs, it will ONLY activate as a server if you have one or more shares.