Samba sharing not working on Fedora KDE 40

So here is what I did:

  1. I installed the samba-share plugin for dolphin and followed its on-screen instructions (like adding the user to the required group)
  2. I started the smb service
  3. I created a share for a folder in my home directory, with read/write access for the user

In Infocenter, the share appears on the samba-shares page.

But when I try to access the share from another device, it only displays the computer. When clicked, it immediately cancels loading it contents.

May this be related to the firewall configuration?

sudo firewall-cmd --permanent --add-service=samba
sudo firewall-cmd --reload

If the issue persists, check the output:

systemctl status smb.service
journalctl --no-pager -b _AUDIT_TYPE_NAME=AVC
sudo testparm -s
sudo firewall-cmd --list-all
1 Like

Hi, i have a similar situation.
I did a fresh install of Fedora 40 KDE on a 40 GB partition.
Then i added the remaining disk space of the drive as an ntfs partition.
I mounted this partition under /mnt/DATA in the fstab which I can access.
Installed the smb service and the dolphin samba module.
Updated the smb.conf with that folder.
I followed mainly the smb share document from the fedora website.
Did firewall etc. related to that folder.
I can see the shared folder under network.
But when i click on it is asking for userlogin and password and none of my credentials are accepted.
Adding a group in the smb.conf didnt make a change to the situation.
Is there any hint what the right procedure would be to share a drive which is not placed in the home directory?
In this case under /mnt as an ntfs partition.

Please start a new topic this is not the same issue as this topic covers.

2 Likes

I added samba to the firewall exceptions, but the issue still persists.

The output of systemctl status smb.service:

● smb.service - Samba SMB Daemon
     Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: active (running) since Mon 2024-07-29 14:15:24 CEST; 1min 39s ago
       Docs: man:smbd(8)
             man:samba(7)
             man:smb.conf(5)
   Main PID: 1039 (smbd)
     Status: "smbd: ready to serve connections..."
      Tasks: 6 (limit: 9330)
     Memory: 43.0M (peak: 61.3M)
        CPU: 708ms
     CGroup: /system.slice/smb.service
             β”œβ”€1039 /usr/sbin/smbd --foreground --no-process-group
             β”œβ”€1129 /usr/sbin/smbd --foreground --no-process-group
             β”œβ”€1130 /usr/sbin/smbd --foreground --no-process-group
             β”œβ”€2405 /usr/libexec/samba/samba-dcerpcd --libexec-rpcds --ready-signal-fd=30 --np-helper --debuglevel=0
             β”œβ”€2580 /usr/libexec/samba/rpcd_classic --configfile=/etc/samba/smb.conf --worker-group=4 --worker-index=0 --debuglevel=0
             └─2582 /usr/libexec/samba/rpcd_winreg --configfile=/etc/samba/smb.conf --worker-group=7 --worker-index=5 --debuglevel=0

Jul 29 14:15:59 wz rpcd_lsad[2415]:   rpcd_lsad version 4.20.2 started.
Jul 29 14:15:59 wz rpcd_lsad[2415]:   Copyright Andrew Tridgell and the Samba Team 1992-2024
Jul 29 14:16:23 wz smbd[2578]: [2024/07/29 14:16:23.420065,  0] ../../source3/printing/printer_list.c:58(get_printer_list_db)
Jul 29 14:16:23 wz smbd[2578]:   get_printer_list_db: Failed to open printer_list.tdb
Jul 29 14:16:23 wz rpcd_classic[2580]: [2024/07/29 14:16:23.457641,  0] ../../source3/rpc_server/rpc_worker.c:1155(rpc_worker_main)
Jul 29 14:16:23 wz rpcd_classic[2580]:   rpcd_classic version 4.20.2 started.
Jul 29 14:16:23 wz rpcd_classic[2580]:   Copyright Andrew Tridgell and the Samba Team 1992-2024
Jul 29 14:16:23 wz rpcd_winreg[2582]: [2024/07/29 14:16:23.505781,  0] ../../source3/rpc_server/rpc_worker.c:1155(rpc_worker_main)
Jul 29 14:16:23 wz rpcd_winreg[2582]:   rpcd_winreg version 4.20.2 started.
Jul 29 14:16:23 wz rpcd_winreg[2582]:   Copyright Andrew Tridgell and the Samba Team 1992-2024

journalctl --no-pager -b _AUDIT_TYPE_NAME=AVC shows -- No entries --

The output of sudo testparm -s:

Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)

Server role: ROLE_STANDALONE

# Global parameters
[global]
        printcap name = cups
        security = USER
        usershare allow guests = Yes
        usershare max shares = 100
        workgroup = SAMBA
        idmap config * : backend = tdb
        cups options = raw
        include = /etc/samba/usershares.conf


[homes]
        browseable = No
        comment = Home Directories
        inherit acls = Yes
        read only = No
        valid users = %S %D%w%S


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


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

The output of sudo firewall-cmd --list-all:

FedoraWorkstation (default, active)
  target: default
  ingress-priority: 0
  egress-priority: 0
  icmp-block-inversion: no
  interfaces: enp0s25
  sources:
  services: dhcpv6-client mdns samba samba-client ssh
  ports: 1025-65535/udp 1025-65535/tcp
  protocols:
  forward: yes
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:
1 Like