Comment on Help with SMB mount - can read/delete but not write
user9314p@lemm.ee 3 weeks ago- Are you saying to mount the disks on the Proxmox host and share them with the containers? I’ve seen people prefer to keep the host “clean” and run something else like OMV in a VM to handle the file serving. I’m using Ubuntu instead mainly as a learning exercise, as I already have OMV installed on bare metal on my main server. I’m passing my SATA controller through to the file server VM and it’s going to be running mergerfs and Snapraid, and sharing the merged pool via samba.
- So I need to make sure there’s a user with uid/gid 1000 on the SMB host that has write access to the folder I’m sharing? I think this is already the case but I’ll double check.
This is a 2nd server I’m building to back up data from my main NAS. The goal is to set up something like restic to back up my important pictures/documents/etc. Since the CPU on this also has Quicksync I’m planning to use it for Jellyfin and migrate my Radarr/Sonarr stack over.
just_another_person@lemmy.world 3 weeks ago
All I’m saying is that if you’re sharing files between two containers, giving them both volumes and using the network to share those files is not the best practiced way of doing that. One volume, two containers, both mount the same volume and skip the network is the way to do that.
To solve for this, you create user mapping in the samba configs that say “Hey, johndoe in samba is actually the ubuntu user on the OS”, and that’s how it solves for permissions. Here’s an example issue that is similar to yours to give you more context. You can start reading from there to solve for your specific use-case.
If you choose NOT to fix the user mapping, you’re going to have to keep going back to this volume and chown’ing all the files and folders to make sure whichever user you’re connecting with via samba can actually read/write files.
user9314p@lemm.ee 3 weeks ago
Here’s a discussion about whether to install on the host vs making a separate VM to serve the files. I don’t know if there’s a right or wrong way to do this, but since I’m running mergerfs/snapraid I figure I’d put it in a VM to keep it separate from Proxmox.
I ended up getting it to work by checking the permissions on the Samba server. The folders were owned by the right user (uid=1000) but not the right gid (gid=something else). chown’d everything to 1000:1000 and 775 permissions and now everything is functioning as expected. Thanks for the help!