Dolphin Failed to Create Network Share, Can't share a folder

I want to share a folder with the local network, but Dolphin displays an error that says:
Samba internals report:
net usershare: usershares are currently disabled

How are you trying to do this?

This should have most all the info you need…

https://wiki.archlinux.org/title/samba#Enable_Usershares

Thanks for your reply! I followed the steps provided on the wiki but now Dolphin displays a different error:
An error occurred while trying to share the directory. The share has not been created.

Samba internals report:

net usershare add: cannot convert name “Everyone” to a SID. The transport-connection attempt was refused by the remote system… Maybe smbd is not running.

Contents of config file

cat /etc/samba/smb.conf

Checking services (not all of these are necessarily required)

systemctl status smb nmb avahi-daemon

Checking ufw firewall (in the case you use this you must create a rule)

sudo ufw status

Current samba users

sudo pdbedit -L -v

I’d also ask for the info on the share folder - ownership and permissions particularly - but I dont know that path.

Contents of smb.config

[global]
   workgroup = MANJARO
   server string = Manjaro Samba Server
   server role = standalone server
   log file = /var/log/samba/log.%m
   max log size = 50
   guest account = nobody
   map to guest = Bad Password
   usershare path = /var/lib/samba/usershares
   usershare max shares = 100
   usershare allow guests = yes
   usershare owner only = yes
   
   min protocol = SMB2
   max protocol = SMB3

[public]
   path = /srv/samba/share-name
   public = yes
   writable = yes
   printable = no

And also the status of the services

○ smb.service - Samba SMB Daemon
     Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled; preset: disabled)
     Active: inactive (dead)
       Docs: man:smbd(8)
             man:samba(7)
             man:smb.conf(5)

○ nmb.service - Samba NMB Daemon
     Loaded: loaded (/usr/lib/systemd/system/nmb.service; disabled; preset: disabled)
     Active: inactive (dead)
       Docs: man:nmbd(8)
             man:samba(7)
             man:smb.conf(5)

○ avahi-daemon.service - Avahi mDNS/DNS-SD Stack
     Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; preset: disabled)
     Active: inactive (dead)
TriggeredBy: ○ avahi-daemon.socket

And the output of the sudo pdbedit command

Unix username:        salyut7
NT username:          
Account Flags:        [U          ]
User SID:             S-1-5-21-2774295028-1377169744-2450492375-1000
Primary Group SID:    S-1-5-21-2774295028-1377169744-2450492375-513
Full Name:            Salyut_7
Home Directory:       \\OLYMPIA\salyut7
HomeDir Drive:        
Logon Script:         
Profile Path:         \\OLYMPIA\salyut7\profile
Domain:               OLYMPIA
Account desc:         
Workstations:         
Munged dial:          
Logon time:           0
Logoff time:          mié, 06 feb 2036 09:06:39 CST
Kickoff time:         mié, 06 feb 2036 09:06:39 CST
Password last set:    mié, 10 may 2023 18:02:21 CST
Password can change:  mié, 10 may 2023 18:02:21 CST
Password must change: never
Last bad password   : 0
Bad password count  : 0
Logon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

Ah well that needs to be started.

systemctl enable smb --now

Oh and … we dont really need that pdbedit content … and it contains username and such … you can go ahead and remove that.