图形界面配置 SAMBA 没有成功

想通过图形界面配置一下 samba 服务器给手机分享电影和文件。
进行了以下操作:
1。关掉防火墙
2。进入 yast 控制中心 samba 服务器配置,添加共享文件夹(名称 share 目录 /home),勾选了 “允许用户共享目录”(不知道啥作用)其他的默认,点确定退出。
3。sudo smbpasswd -a tom 添加用户

cat /etc/samba/smb.config 输出
[share]
comment =
inherit acls = yes
path = /home
read only = no
vfs objects =
用 ES 文件浏览器能搜到这个分享,但是输入用户名和密码总是提示错误,想请教一下哪里出问题了

看起来没啥问题,自己再重启一下 Samba 试试

systemctl restart smb
systemctl restart nmb

另外为啥要关防火墙,用配置界面「打开防火墙中端口」就可以了

关防火墙是为了排除防火墙的干扰,论坛里有帖子是防火墙导致无法连接。:smile:

输入
systemctl restart smb
systemctl restart nmb
后用另一台电脑输入:
> smbclient -L //192.168.0.100/share -U tom
Unable to initialize messaging context
Enter WORKGROUP\tom’s password:

	Sharename       Type      Comment
	---------       ----      -------
	profiles        Disk      Network Profiles Service
	users           Disk      All users
	groups          Disk      All groups
	print$          Disk      Printer Drivers
	share           Disk      
	IPC$            IPC       IPC Service (Samba 4.12.3-git.161.208cf9730eeSUSE-oS15.5-x86_64)
	tom             Disk      Home Directories
Reconnecting with SMB1 for workgroup listing.
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Failed to connect with SMB1 -- no workgroup available

输入:
> smbclient //192.168.0.100/share -U tom 22:50:21
Unable to initialize messaging context
Enter WORKGROUP\tom’s password:
Try “help” to get a list of possible commands.
smb: >

手机上能搜索到但是输入 smbpasswd 时的用户名和密码还是不好使:innocent:

:joy: 尽是些没玩过的操作,本地用文件管理器啥的能连上么?可以的话手机上可换换其他程序试试

我的 samba.conf 长这样,我没有 ES,用 FX 和 VLC 试了试挺正常的

[global]
	passdb backend = smbpasswd
	usershare allow guests = No
	wins support = No
	workgroup = zdb
	log file = /var/log/samba/%m.log
	max log size = 10000
	log level = 1 auth:2
	ldap admin dn = 
	wins server = 

[video]
	inherit acls = Yes
	path = /home/zzndb/ 下载
	read only = Yes
	guest ok = Yes

# Share disabled by YaST
[file]
	inherit acls = Yes
	path = /home/zzndb
	read only = Yes
	guest ok = No

多谢帮助,我经过仔细对比之后没有新的发现,经过慎重考虑重装了,问题解决了。:joy: