Proxmox CIFS Network Storage Error “create storage failed: error with cfs lock ‘file-storage_cfg’: mkdir /mnt/pve/network-storage-backups/snippets: Permission denied at /usr/share/perl5/PVE/Storage/Plugin.pm line 1027. (500)”

Samba needs to be configured (at the share location) to allow the user that you are connecting with to actually connect. 

In Linux you can create a Linux user and grant that user samba access.  The samba password can be different than the Linux account password.  Before you can add a samba password to this user you must have created a Linux user.  If you already have a Linux user then you can just add that user to samba.

  • Ensure you have your “smbpasswd -a” set for the user. This would be something like “sudo smbpasswd -a joe“.  Enter the samba password that you want to add for this Linux user. On the Proxmox storage setup screen you enter the samba password instead of the Linux user’s password unless they are the same.
  • Ensure you have given the Linux user permissions to the path pointed to by the samba share.
  • Ensure you have your /etc/samba/smb.conf “share” is properly named, with the proper rights, and that the path is correct. NOTE:  samba rights can only further restrict Linux file system rights, it cannot grant more rights.
  • Verify everything.

After this is done you can switch back to the Proxmox web UI and add the CIFS network storage. Remember you’ll need the samba password (instead of the user’s password) for this unless the Linux user’s password and samba password are the same.

I’ve tested this on multiple installs of Proxmox for over a year and each time this worked.