cifs Access Denied

mblanton

New Member
May 1, 2020
1
0
1
50
I have been attempted to configure Proxmox to mount a CIFS share for ISO images.

root@pve2:~# pveversion
pve-manager/6.1-3/37248ce6 (running kernel: 5.3.10-1-pve)

I can see the share with pvescm cifsscane

root@pve2:~# pvesm cifsscan 192.168.100.10
....
ISO
Pictures Pictures
Backup Backup
...


However, if I try to mount the share, I get an access denied. Either from the GUI or CLI.
From the UI:
create storage failed: error with cfs lock 'file-storage_cfg': session setup failed: NT_STATUS_ACCESS_DENIED (500)

From the CLI:
root@pve2:~# pvesm add cifs iso --server 192.168.100.10 --share ISO
create storage failed: error with cfs lock 'file-storage_cfg': session setup failed: NT_STATUS_ACCESS_DENIED

I've tried smb client versions 2.0, 2.1 and 3.0. Same result.


From the shell I can access the share via smblcient witout any issue.

root@pve2:~# smbclient //192.168.100.10/iso
Enter WORKGROUP\root's password:
Try "help" to get a list of possible commands.
smb: \> ls
. D 0 Fri Sep 11 20:20:15 2015
.. D 0 Wed Apr 29 19:35:03 2020
Fedora DA 0 Fri Sep 11 20:20:19 2015
CentOS DA 0 Fri Sep 11 20:20:19 2015
....


I can change into any of the ISO folders and `ls` to get the contents without any issue.
I have also mounted the same share on a Fedora 31 Workstation and Windows 10 system.

The more interesting aspect, is that when Proxmox returns the access denied, I checked the security logs on the SMB host (QNAP) and it shows the smb Login as ok. So the host is not rejecting the request.
So, I can't understand why Proxmox returns an access denied.

I have tested with this the guest access as well as a named user account. Same results.

Any assistance or advice on how to debug this further is very much appreciated.
 
Hi,
the error itself comes from the smbclient.

please try to run the following command.

Code:
/usr/bin/smbclient //192.168.100.10/iso -d 0 -m smb3 -U <username> -A <path credentials file> -c 'echo 1 0'
 
I am to having this issue, but I do not know what path to set in above command for path credentials file

I am only new to proxmox yesterday, I just need access to cifs shares
 

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!