I am trying to connect to an SMB existing in another Proxmox guest, from both LXCs and VMs.
The LXC clients are unprivileged, and when I add
and execute
It complained with an error suggesting a permission issue.
My understanding is that I cannot mount through fstab under an unprivileged LXC.
Trying to do the same under a VM works well.
However, I got confused as I can actually connect to the network drive if I connect manually within the GUI of the LXC.
For example, I can connect to the same network location and access the files if I add the above location from within the file manager (xfce).
As this is all I need, is it possible to do this step automatically on boot for the LXC, so other program can access the network location like it was mounted?
Update: It looks like I indeed do not have write access even after I have mounted the drive through the GUI. I guess this does not really solve my problem.
The LXC clients are unprivileged, and when I add
Code:
//192.168.11.20/store /mnt/store_mnt cifs username=store,password=password,_netdev 0 0
Code:
mount -a
My understanding is that I cannot mount through fstab under an unprivileged LXC.
Trying to do the same under a VM works well.
However, I got confused as I can actually connect to the network drive if I connect manually within the GUI of the LXC.
For example, I can connect to the same network location and access the files if I add the above location from within the file manager (xfce).
As this is all I need, is it possible to do this step automatically on boot for the LXC, so other program can access the network location like it was mounted?
Update: It looks like I indeed do not have write access even after I have mounted the drive through the GUI. I guess this does not really solve my problem.
Last edited: