fh4199
August 28, 2025, 8:53am
1
Hi,
i have the same issue:
here are the permissions in my host, the smb share is mounted to /mnt/lxc_shares/nas
root@pve:~# ls -l /mnt/lxc_shares/
total 0
drwxrwxrwx 2 100000 100000 0 Aug 27 21:37 nas
and here are the persmissions in my lxc-container:
root@Docker-LXC:/mnt/nextcloud-data/backup/borg# ls -l /mnt/
total 4
drwxrwxrwx 2 root root 0 Aug 27 21:37 backupNextcloud
i mounted the disk in my .conf like this:
mp0: ...
mp1: /mnt/lxc_shares/nas/,mp=/mnt/backupNextcloud
unprivileged: 1
lxc.idmap: u 0 100000 33
lxc.idmap: g 0 100000 33
lxc.idmap: u 33 33 1
lxc.idmap: g 33 33 1
lxc.idmap: u 34 100034 65502
lxc.idmap: g 34 100034 65502
Hi, this seems to be an nfs mountpoint. so you need to disable the squashroot feature (IIRC it is called like that) so that the root user can access the share.
fh4199
August 28, 2025, 12:37pm
3
Can you please explain me what and how to connect the fritz.nas network device correctly?
ich have this line in the fstab in the host:
//192.168.180.1/fritz.nas/backupDisk /mnt/lxc_shares/nas cifs _netdev,x-systemd.automount,uid=100000,gid=100000,noatime,dir_mode=0777,file_mode=0777,credentials=/root/.smbcredentials,vers=3.0 0 0
Ah so this is also a cifs drive
fh4199
August 28, 2025, 12:48pm
5
yes, and the drive is formatted as ext4
fh4199
September 8, 2025, 8:58am
6
Can someone help me please?