[SOLVED] Proxmox CIFS access denied despite correct credentials being entered

Quincy

New Member
Oct 16, 2019
10
0
1
30
Hi Everyone

I`m trying to mount my Samba share that is hosted on a Raspberry Pi to Proxmox 6.0-4 which is hosted on another server
What I have done so far:
  1. Samba share is accessible from windows machine with credentials that I setup
  2. In Proxmox a mount point has been made /mnt/NAS
  3. /ect/fstab has the following line: //serverIP/folderName /mnt/NAS username=Pi,password=PASSWORD 0 0
  4. Running the command pvesm cifsscan serverIP returns the network share that I have under that IP
  5. In Proxmox > Datacentre > Storage > Add > Cifs, has the following details:
    1. ID: THENAS
    2. Server:serverIP
    3. Username: Pi
    4. Password: PASSWORD
    5. Share: (drop down list has my network share listed) folderName
When I click Add, I get the error :
create storage failed: error with cfs lock 'file-storage_cfg': tree connect failed: NT_STATUS_ACCESS_DENIED (500)" which doesn’t make sense as pvesm can see the folders and the windows machine can Read/write into them with the same credentials

Any ideas why this is occurring?
 
Last edited:
Hi,

you mount the share two times.
If you use the CIFS plugin a fstab entry is not necessary.

Try this commannd and see if you get an error.
Code:
/usr/bin/smbclient //<server>/share -d 0 -m smb3 -U <username> -c echo 1 0
 
Hi,

you mount the share two times.
If you use the CIFS plugin a fstab entry is not necessary.

Try this commannd and see if you get an error.
Code:
/usr/bin/smbclient //<server>/share -d 0 -m smb3 -U <username> -c echo 1 0

Hi,

I ran that code and it returned `tree connect failed: NT_STATUS_ACCESS_DENIED`
I don't believe that I am running the CIFS plugin?, a google search returns results for Jenkins CIFS
 
If you use
In Proxmox > Datacentre > Storage > Add > Cifs, has the following details
then you use the CIFS plugin.
I would inspect your smb.conf on the Raspberry.
 
If you use

then you use the CIFS plugin.
I would inspect your smb.conf on the Raspberry.

My smb.conf on the Raspberry has this at the bottom
[Folder]
comment = shared folder
path = /media/USBHDD1/shares
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
read only = no

The above was taken from an online guide found here https://www.instructables.com/id/Raspberry-Pi-As-a-NAS-Network-Attached-Storage/

I have changed that to the below and I am still able to RW from my windows machine, proxmox is still returning the same error message
[Folder]
Path = /media/USBHDD1/shares
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
Public = yes
Guest ok = yes

What should my smb.conf look like?
 
Okay fixed it, I ended up creating another user on my Pi for Samba as it appears Windows doesn't like it when you try to use the same credentials multiple times, it was either that or the smb conf edit that i did

Thank you for the troubleshooting help wolfgang :)
 
I've read that Samba requires a seperate Windows password in addition to that used in Linux for each user. The passwords may be the same but they are treated as seprate entities.
 

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!