[SOLVED] Unpriviledged LXC can mount SMB via Nextcloud

KrawallKurt

Member
Dec 18, 2023
39
4
8
Hi all,
I have a nextcloud running in an unpriviledged LXC. To my knowledge, it's not possible to mount SMB storages in unpriviledged containers. However, using the external storage app in nextcloud, I can add a SMB location to my nextcloud and read/write to it. There's no real problem to solve in this thread. I just want to understand why this is possible.

Thanks in advance :)
 
  • Like
Reactions: aj@root
Not being familiar with NextCloud's External Storage App... I'll hazard a guess it's just at the software / API layer.

Since SMB is a network protocol, you can read from and write to a share without a kernel-level mount to the filesystem - similar to ssh or https.

The "mount" doesn't show up in the output of mount or df does it?
 
Last edited:
  • Like
Reactions: KrawallKurt