I have a local server running Ubuntu 18.04.1 which was recently upgraded from Ubuntu 15 where I had a few shares configured manually via Samba in /etc/samba/smb.conf like:

    path = /home/user
    writeable = yes
    valid users = root, user

This has continued to work just fine since the upgrade but today I noticed if I right-click on a directory in Gnome I get a dialog window with a tab called "Local Network Share" that looks like this:


I enabled it and now it's showing up on my LAN as another share. My question is, where is this configured? Is it using Samba as well or some other service? I took a look at smb.conf where the other shares are configured but its not there.

  • 2
    Should be in /var/lib/samba/usershares/, but nautilus on a server ... – mikewhatever Oct 6 '18 at 22:06
  • Interesting. So it is Samba? The same Samba process reading both? Why is the syntax of these files different than my existing shares on smb.conf? Do these have to be configured through the GUI or can I just create new files and drop them in that directory? Essentially I'd probably like to move my existing shares over to the newer format so everything is managed the same way. – billynoah Oct 6 '18 at 22:18

** "Local Network Share" is the gnome implementation ( nautilus-share ) of a Samba Usershare. Its intent was to allow an ordinary user the ability to share a directory he owned.

** A Samba Usershare and for want of a better name a Samba Classic Share both create Samba share definitions but as indicated above those definitions reside in different files. Usershare: /var/lib/samba/usershares vs ClassicShare: /etc/samba/smb.conf.

** Samba will read both and that can be a problem if both are used to define the share of the same directory because they might be defined differently as is the case here. Your guess is as good as mine which one Samba will obey.

** You cannot in this case reproduce through Nautilus the share definition you have in smb.conf because nautilus-share does not have that option: There is no "valid users" option in nautilus-share - it's either guest access or anyone with samba credentials. You cannot specify a list of users or groups.

** A Samba Classic Share offers many other options not available to Usershares so it depends on how complex your requirements are for these shares.

  • thanks for the detailed breakdown! I'm accepting this but for sake of completeness, can I suggest including a word about the path mentioned by mikewhatever in his comment above? – billynoah Oct 7 '18 at 14:09
  • I have made the requested edit. – Morbius1 Oct 7 '18 at 14:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.