Trouble getting Samba shares started

I’m having some hiccups getting my Samba shares live. On a fresh KDE install. Previously, this hardware was running Ubuntu 18.04. While changing out the storage media I switched to Manjaro after using it in multiple VMs. System filestructure is btrfs, if that matters at all.

There are 2 points where I am in need of assistance.

  1. enabling sharing through file browser [Dolphin]
  2. configuring using smb.conf

[1] I have gone through the Wiki’s instruction for getting file sharing started in Dolphin.

pamac install gvfs-smb
pamac install samba kdenetwork-filesharing manjaro-settings-samba

Dolphin essentially accused the OS of not configuring things the way they want it.
For example, the above code adds my user to sambashare. Dolphin wanted me to be in usershares.
One by one, I cleared those errors. Now when I attempt to share a directory n Dolphin, I get the following message:

net usershare: usershares are currently disabled

My online searching hasn’t provided the right info as of yet. How do I clear this error?

[2] I’ve made some edits to my smb.conf file in hopes of creating an anonymous share [its just media for the most part]. It seems to work in that other devices on the network can see my PC name; however, the only thing visible is printers.

Here is the output from testparm.

testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Global parameter interfaces found in service section!
Global parameter bind interfaces only found in service section!
Global parameter log file found in service section!
Global parameter max log size found in service section!
lpcfg_do_service_parameter: WARNING: The "syslog" option is deprecated
Global parameter syslog found in service section!
Global parameter panic action found in service section!
Global parameter server role found in service section!
Global parameter passdb backend found in service section!
Global parameter obey pam restrictions found in service section!
Global parameter unix password sync found in service section!
Global parameter passwd program found in service section!
Global parameter passwd chat found in service section!
Global parameter pam password change found in service section!
Global parameter map to guest found in service section!
Global parameter usershare max shares found in service section!
Global parameter usershare allow guests found in service section!
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)

Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
        dns proxy = No
        guest account = guest
        map to guest = Bad User
        security = USER
        server string = %h server (Samba, Manjaro)
        usershare allow guests = Yes
        usershare owner only = No
        idmap config * : backend = tdb


[guest_share]
        comment = guest_share
        force create mode = 0666
        force directory mode = 0777
        guest ok = Yes
        guest only = Yes
        path = /home/media/
        printable = Yes
        read only = No


[printers]
        browseable = No
        comment = All Printers
        create mask = 0700
        path = /var/spool/samba
        printable = Yes


[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

My hunch is that I need to change a permission of a user or group. I’ve played with it, followed various Arch setup guides, and now need to ask someone to point me in the right direction.

Thanks in advance!

The first is a hands-on-practical walk-through with planning and considerations then the subseqent implementation of a samba fileserver from scratch.

The second is informative topic on various troubleshooting and setup

The third you must be familiar with as this is the goto source for Samba on Manjaro

If I understand your topic correct - you are looking for at method of graphically sharing a user folder on your system - preferably using Dolphin → rightclick → share?

And you have read the Arch wiki on usershares?

The output from 'testparm* you showed earlier looks like you have copy-pasted some smb.conf found on the internet. This is usually not a good idea as you should only add options to your smb.conf which you know why you need.

Samba has a boatload of various options - of which you will ever only need very few.

1 Like

Is avahi installed and running?

1 Like

@linux-aarhus Thanks for these links!
My missing step for sharing through the browser was answered in the Arch wiki User Shares link.
Yes, I copied a smb.conf template then started editing from there. I’m sure there is a lot (90%) that can be deleted altogether instead of simply commenting out. I’ll play with it more and clean it up using your links as a guide.

@straycat Thanks for pointing me here. It was installed but not enabled or running. Following the steps from ArchWiki, I got it running. Now I can view my files using via SMB [thanks to the above] and through Zeroconf. Question on this; is there an advantage to media sharing using one or the other of these protocols?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.