Samba share issue

Good morning all.

I want to say thank you in advance for any help you might be able to provide. I have been messing with this for two days now.

Summary of issue.
I can not create a Samba share outside of my Home directy that can be accesesd by client devices.

I have created a shareof my Home Directory and it works perfectly.

Both shares have the same Valid User in the SMB.conf file and are usingthe same username and password for the Samba user.

Details of Issue

I have created a folder off the root folder (needed by some of my software) that I am the owner of and read and write permissions are set for user, group and other for the folder and all files and folder below the main directory.

I have set the permission on the /Media folder as openly as possible to try and remove permissions as the issue but that did nothing. I explored ACLs but I didnt find an explanation of them that made snse for my use case as it is just my user accessing the files from all locations.

Here is my SMB.conf file.

[global]

   workgroup = WORKGROUP
   server string = FILESERVER
   server role = standalone server
   map to guest = bad user
   log file = /var/log/samba/%m.log
   max log size = 50
   log level = 2 winbind:5
   dns proxy = no
[bboyle]
   comment = My stuff
   path = /home/bboyle
   valid users = bboyle
   public = no
   writable = yes
   printable = no
   create mask = 0765
   
[content]
   comment = My Media
   path = /Media
   #valid users = bboyle
   public = yes
   browseable = yes
   writable = yes
   force user = bboyle
   force group = bboyle
   create mask = 0765
   force create mode = 0765

As I said the home share works pefectly from multiple clients including Windows computers and SMB clients however the Content share can be seen by windows and other SMB clients but when you access the share you get Access Denied.

It is worth noting this is a fesh install of Manjaro XFCE as of two days ago and I did all updates right after the installation.

I was able to replicate the error on my latptop with a fesh install of Manjaro on it as well.

No useable errors show up in the Samba log so I am totaly stumped.

If it helps, here is the LS listing of the root directory showing only the /Media folder

drwxrwxrwx 9 bboyle bboyle 4096 Mar 25 21:22 Media

Any help would be appreciated.

Cheers,

User folder (aka Home directory) is where you store your data.
Root folder is for system use.

You should never store personal data under root folder.
Inferring from there, if you understand the risk involved and still insist to share your root folder, you’re doing so at your own.

A similar topic was discussed here:
https://www.linuxquestions.org/questions/linux-networking-3/smb-share-root-folder-180862/

I would recommend you to migrate the /Media to ~/Media and share it from there.

Take a look at the samba article section 4.3 of the ArchWiki. Apparmor is the problem. There is a valid reason why user share shouldn’t be outside of the user/home directory. Only root should be able to do that. That is the default.

There is several guides in Tutorials section on samba, check them out.

OMG! Thank you. I have been googleing evrying I could think of in terms of word combinations for two days with no success as well a trying many tutorials.

This one thing fixed my issue.

Thank you!

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