SMB permissions for backups/iso

ballybob

Member
Aug 13, 2022
39
2
13
I added an SMB share to storage, but I am getting permission denied messages.
I know there are some issues with unprivileged containers/vms but what if I am trying to use it for backups, iso, or disk images. I can see the data so I know it is authenticating properly.
 
You provide no details about the SMB source or how you added it. Does it work on another client etc. & loads more info you could have provided.
 
You provide no details about the SMB source or how you added it. Does it work on another client etc. & loads more info you could have provided.
I added it via data center / storage.

It works fine from workstation with the same username/password with RW access.
I can see the data on the share, but I have no write access. I know for LXC I need privileged to access it, but in this case I am trying to use backups and iso functionality of Proxmox.
 
Try removing the storage and define/mount it in /etc/fstab. Then re-add the storage as Directory, that's working for me.

PVE GUI failed to properly mount a Samba/CIFS share hosted on iMac and Mac pro.
 
Show output for for cat /etc/pve/storage.cfg The smbversion can be dicey.

I assume you fully rebooted the node after adding the SMB to storage.

Most likely with write-permission problems, you need to check Guest Permission, ACLs etc. on the SAMBA server.
 
Show output for for cat /etc/pve/storage.cfg The smbversion can be dicey.

I assume you fully rebooted the node after adding the SMB to storage.

Most likely with write-permission problems, you need to check Guest Permission, ACLs etc. on the SAMBA server.
Code:
cifs: smb-backups
        path /mnt/pve/smb-backups
        server 192.168.1.21
        share pve-backups
        content rootdir,iso,images,vztmpl,snippets,backup
        prune-backups keep-all=1
        username bob
 
What do these commands output:

Code:
smbclient -L 192.168.1.21 -U "bob"
# when prompted enter the correct pwd for the share

ls /mnt/pve/smb-backups
 
What do these commands output:

Code:
smbclient -L 192.168.1.21 -U "bob"
# when prompted enter the correct pwd for the share

ls /mnt/pve/smb-backups
Code:
Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (TrueNAS Server)
        pve-backups     Disk     
        data            Disk

Code:
dump  images  private  snippets  template
 
Assuming that you did not write these directories manually, it is evident that Proxmox has managed to write them. I don't see how it could be write-prohibited.

Maybe it would be worth checking (from another workstation?) that these directories actually exist in the TrueNAS Server's storage, (to eliminate the possibility that these directories are written locally in PVE & not mounted from the share).
 
Assuming that you did not write these directories manually, it is evident that Proxmox has managed to write them. I don't see how it could be write-prohibited.

Maybe it would be worth checking (from another workstation?) that these directories actually exist in the TrueNAS Server's storage, (to eliminate the possibility that these directories are written locally in PVE & not mounted from the share).
I can see the files in the share, I know the share works, it is actually a multi share (NFS & SMB), Proxmox is able to R/W via NFS, but can't write with SMB but can read.
 
I can see the files in the share, I know the share works, it is actually a multi share (NFS & SMB), Proxmox is able to R/W via NFS, but can't write with SMB but can read.
Now we are getting somewhere. Try removing the NFS, reboot & see if the SMB works. (I would also start again from scratch, so remove/move those dirs & content on share & start again).
 
Now we are getting somewhere. Try removing the NFS, reboot & see if the SMB works. (I would also start again from scratch, so remove/move those dirs & content on share & start again).
I have a few VMs running over NFS. I setup smb as I wanted to test to see if I could get multichannel working with Proxmox without manually doing it via fstab
 
Try setting up SMB share in a different dir/sub-dir or maybe on a separate share? I do not have experience so report back.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!