23
Help with lxc write access (discuss.tchncs.de)
submitted 2 years ago* (last edited 2 years ago) by laggytoast@discuss.tchncs.de to c/selfhosted@lemmy.world

I need some help with my setup please, I am fairly new to selfhosting and the information I found searching hasn't helped me understand what is wrong. But I have miniPC running proxmox with all my stuff running jellyfin/arr stack etc. I then have another machine running my file share using SMB (maybe this is the wrong way to do it). I can add the share to my datacenter in proxmox and see it and but I cannot get my unprivileged container to write to the share. I can get privileged containers to write when I mount using cifs but this I read this is bad practice.

I have changed permissions on the file share to try give write access, I have tried Option 3 from this link I have been through this reddit thread and others.

Should I just make the lxc's that need to access the file privileged or is there something I am just not understanding here. I assumed this would be a fairly common setup and be fairly easy to configure but I am often wrong.

UPDATE: I changed to use NFS to manage the files and followed this guide allowing both the lxc and the main node on proxmox access to the files and this has solved the issues for me. My file share is just shared from a Debian server I am hosting potentially I will come across this issues when I swap to TrueNas in the future.

you are viewing a single comment's thread
view the rest of the comments
[-] egonallanon@lemm.ee 2 points 2 years ago

Can the host itself write to the file share? You can check this by trying to create a file in it via the host's shell. If it can't write to it the container won't be able to either.

this post was submitted on 03 Mar 2025
23 points (92.6% liked)

Selfhosted

62320 readers
1227 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS