Thanks @vexch. Good advice. I went ahead with the intention of creating the three share types and then would copy files into the shares later. Home works fine but Open and Group shares generate errors on creation.
I’ve changed the mount point for the media folders to /mnt/NAS
and used the Samba app to create Open, Group and Home shares. Open and Group creation generated errors (below). Home share creation was successful and the Home button has now turned green in the app interface.
Trying to create an Open or Group share generated this error:
Error enabling share: (‘samba’, ‘’, ‘setfacl: /mnt/NAS/FreedomBox/shares/open_share: Operation not supported\nTraceback (most recent call last):\n File “/usr/share/plinth/actions/samba”, line 339, in \n main()\n File “/usr/share/plinth/actions/samba”, line 335, in main\n subcommand_method(arguments)\n File “/usr/share/plinth/actions/samba”, line 275, in subcommand_add_share\n arguments.windows_filesystem)\n File “/usr/share/plinth/actions/samba”, line 110, in _create_share\n _set_share_permissions(share_path)\n File “/usr/share/plinth/actions/samba”, line 265, in _set_share_permissions\n subprocess.check_call(['setfacl', '-Rdm', 'g::rwX', directory])\n File “/usr/lib/python3.7/subprocess.py”, line 347, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command '['setfacl', '-Rdm', 'g::rwX', '/mnt/NAS/FreedomBox/shares/open_share']' returned non-zero exit status 1.\n’)
However, share folders are created in the directory tree, even for the shares that didn’t “work”. I now have:
/mnt/NAS/FreedomBox/shares/group_share
/mnt/NAS/FreedomBox/shares/homes
/mnt/NAS/FreedomBox/shares/open_share
Permissions look to be identical across all the folders
drwxr-xr-x 2 fbx fbx 0 Jun 14 17:41 .
drwxr-xr-x 2 fbx fbx 0 Jun 14 17:41 ..
drwxr-xr-x 2 fbx fbx 0 Jun 14 17:41 group_share
drwxr-xr-x 2 fbx fbx 0 Jun 14 17:41 homes
drwxr-xr-x 2 fbx fbx 0 Jun 14 17:41 open_share
It seems that the Open share does work (this is the only one I’ve tested) because I can share its contents with other devices on the network. I don’t want to rely on it though because of the errors I encountered during setup, and the fact that the Samba app only shows the Homeshare asbeing set up correctly (Home button is green; Group and Home and grayed out)
It’s all very puzzling and I don’t know what to do next.