RHEL 8.2 上的 Samba 配置:SMB1 已禁用 - 没有可用的工作组

RHEL 8.2 上的 Samba 配置:SMB1 已禁用 - 没有可用的工作组

我一直在尝试配置 Samba,以允许我的客户操作系统(RHEL 8.2)(在 Oracle VM VirtualBox 6.1.8 上运行)与我的主机操作系统(Win10)进行通信,请遵循本指南这里。不幸的是,通过 Guest Additions 使用共享文件夹无法提供所需的开发环境。

因此运行时:
# smbclient -U {myuser} -L localhost
我得到以下信息:

Enter WORKGROUP\{myuser}'s password: 

    Sharename       Type      Comment
    ---------       ----      -------
    athena          Disk      ATHENA Server              # my desired share, mapped to root
    IPC$            IPC       IPC Service (Samba 4.11.2)
    {myuser}        Disk      Home Directories
SMB1 disabled -- no workgroup available

我认为这个错误:SMB1 disabled -- no workgroup available阻止了我的主机操作系统通过 VM Box 的 IP 检测网络上的共享的能力

到目前为止,我的 google-fu 没有找到相关结果,因此任何见解都将不胜感激

相关配置信息(至少我认为是):
测试参数 通行证

Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE

smb配置文件

# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.

[global]
    workgroup = WORKGROUP
    protocol = SMB3
    security = user
    map to guest = bad user
    guest ok = yes
    netbios name = athena_server
    passdb backend = tdbsam

    log file = /var/log/samba/%m.log
    log level = 1

[homes]
    comment = Home Directories
    valid users = %S, %D%w%S
    browseable = no
    read only = no
    inherit acls = yes

[athena]
    comment = ATHENA Server
    path = /
    valid users = {myuser}
    browseable = yes
    public = yes
    writable = yes

#[printers]
#   comment = All Printers
#   path = /var/tmp
#   printable = Yes
#   create mask = 0600
#   browseable = No

#[print$]
#   comment = Printer Drivers
#   path = /var/lib/samba/drivers
#   write list = @printadmin root
#   force group = @printadmin
#   create mask = 0664
#   directory mask = 0775

状态

SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     actual (secure)
Max kernel policy version:      31

semanage boolean -l | grep samba

samba_create_home_dirs         (on   ,   on)  Allow samba to create home dirs
samba_domain_controller        (on   ,   on)  Allow samba to domain controller
samba_enable_home_dirs         (on   ,   on)  Allow samba to enable home dirs
samba_export_all_ro            (on   ,   on)  Allow samba to export all ro
samba_export_all_rw            (on   ,   on)  Allow samba to export all rw
samba_load_libgfapi            (on   ,   on)  Allow samba to load libgfapi
samba_portmapper               (on   ,   on)  Allow samba to portmapper
samba_run_unconfined           (on   ,   on)  Allow samba to run unconfined
samba_share_fusefs             (on   ,   on)  Allow samba to share fusefs
samba_share_nfs                (on   ,   on)  Allow samba to share nfs
sanlock_use_samba              (on   ,   on)  Allow sanlock to use samba
tmpreaper_use_samba            (on   ,   on)  Allow tmpreaper to use samba
use_samba_home_dirs            (on   ,   on)  Allow use to samba home dirs
virt_use_samba                 (on   ,   on)  Allow virt to use samba

答案1

这不是错误,而是事实。您有“协议 = SMB3”,实际上是“服务器最大协议 = SMB3”,这是默认设置,因此您不需要它。还有一个默认设置“服务器最小协议 = SMB2_02”,这意味着 SMBv1 已关闭,您需要 SMBv1 进行网络浏览。因为这是 Linux,所以您有两个选择,通过 UNC 浏览到共享或在两台机器上设置 Avahi

相关内容