I am currently running into permission errors inside an Alpine LXC (using the template included with Proxmox 7.3) when trying (as root) to mount a folder shared on the Proxmox host.
The error occurs for both SMB and NFS.
Here is how it looks like from the client side:
And here are the configs on the server side:
Total Commander and VLC on my Android phone are accessing that SMB share just fine btw.
The error occurs for both SMB and NFS.
Here is how it looks like from the client side:
Code:
Alpine-CT100:~# cat /etc/fstab
/dev/cdrom /media/cdrom iso9660 noauto,ro 0 0
/dev/usbdisk /media/usb vfat noauto,ro 0 0
192.168.10.2:/storage /nfs/storage nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
//192.168.10.2/Storage /mnt/storage cifs guest,uid=1000,iocharset=utf8 0 0
Alpine-CT100:~# mount -a
mount.nfs: Operation not permitted
mount: mounting 192.168.10.2:/storage on /nfs/storage failed: Invalid argument
mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount: permission denied (are you root?)
Alpine-CT100:~#
And here are the configs on the server side:
Code:
root@mr:~# cat /etc/exports
/storage 192.168.10.0/255.255.255.0(rw,sync,no_root_squash,no_subtree_check)
root@mr:~# cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
interfaces = 192.168.10.0/24 eth0
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
server role = standalone server
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
usershare allow guests = yes
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
authentication schemes
valid users = %S
[Storage]
comment = Storage share folder
path = /storage
browseable = yes
read only = no
guest ok = yes
Total Commander and VLC on my Android phone are accessing that SMB share just fine btw.
Last edited: