linux:fedora:fedora_31_samba_protocol_negotiation_failed

Fedora 31 で protocol negotiation failed が発生する

Fedora 31 で Samba のファイル共有にアクセスできない場合は以下の確認を行ってみる。

$ smbclient -L 192.168.1.254 -U% -m SMB2
protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED
$ testparm -v | grep protocol
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

	client ipc max protocol = default
	client ipc min protocol = default
	client max protocol = default
	client min protocol = SMB2_02
	server max protocol = SMB3
	server min protocol = SMB2_02

Samba の設定に以下(client min protocol = NT1)を追記する。

$ sudo vi /etc/samba/smb.conf
[global]
 
;       max protocol = SMB2
        client min protocol = NT1
$ testparm -v | grep protocol
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

	client ipc max protocol = default
	client ipc min protocol = default
	client max protocol = default
	client min protocol = NT1
	server max protocol = SMB3
	server min protocol = SMB2_02

共有が確認できれば、アクセスエラーは回避できている。

$ smbclient -L 192.168.1.254 -U% -m SMB2

	Sharename       Type      Comment
	---------       ----      -------
	IPC$            IPC       IPC Service (GL-AR750S-d80)
	sd128gb         Disk      
Reconnecting with SMB1 for workgroup listing.

	Server               Comment
	---------            -------
	GL-AR750S            GL-AR750S-d80

	Workgroup            Master
	---------            -------
	MONSTERS-G           GL-AR750S
  • linux/fedora/fedora_31_samba_protocol_negotiation_failed.txt
  • 最終更新: 2024/02/04 13:34
  • by ともやん