Change CIFS mount password?

rsteele

New Member
Oct 3, 2020
3
0
1
56
For....reasons...I needed to change the password of the account I used to mount a CIFS filesystem from my synology in my Proxmox instance. However, now I cannot figure out how to change the password on an existing storage in Proxmox: the password field (most of them, actually) are disabled when editing the storage entry.

How do I change the password?
 
you can use 'pvesm set STORAGEID --password' see 'man pvesm'
 
Thanks. When I do that I get a response ignoring password parameter without it appearing to have changed it.
 
from the code it seems that this happens only when there is no username set for the storage
 
I definitely have a user set. In any case I tried to also pass the --user option and that appears to have worked. Thanks.
 
Hi, Same here, I had a working share, I had to change the IPAddress. So I had to set the changes in Proxmox too. You have to pass the "--username XXXXX --password YYYY" argument for it to work, won't work with only "--password YYYY".
Anyways, is there a way to force a remount of the drives or do I have to restart my ProxMox Server?
 
here we go again.
cifs mount, again need to update the password after change on the server.
pvesm set thestorage --password (pass at promt)
pvesm set thestorage --username theuser --password (pass at promt)
pvesm set thestorage --user theuser --password (pass at promt)
pvesm set thestorage --password xxxx
pvesm set thestorage --username theuser --password xxxx
pvesm set thestorage --user theuser --password xxxx
all the above do not work. when delete the storage an add it again, works. please, let us change passwords via GUI, also for other storages, as PBS etc. thanks in advance.
 
here we go again.
cifs mount, again need to update the password after change on the server.
pvesm set thestorage --password (pass at promt)
pvesm set thestorage --username theuser --password (pass at promt)
pvesm set thestorage --user theuser --password (pass at promt)
pvesm set thestorage --password xxxx
pvesm set thestorage --username theuser --password xxxx
pvesm set thestorage --user theuser --password xxxx
all the above do not work. when delete the storage an add it again, works. please, let us change passwords via GUI, also for other storages, as PBS etc. thanks in advance.
just reboot pve system after you change password.
 
just reboot pve system after you change password.
yeah, just reboot. thanks :)
there are some 24/7 VMs. my solution back then was just to remove the smb mount and create a new one. it is a lot more effort, than just update the password and quick remount. password updates for storages should be possible in gui, so storage-admins can do that with limited permission and no shell access, and ofc. no reboots.
reboots are reserved for 1. planned and communicated maintenance windows 2. for unplanned crashes/hardware defects.
 
this is how I do it from console and works on 7.4-17 when the password changes from a working cifs mount

Code:
pvesm set thestorage --user theuser --password (pass at promt)
mount -a

reload broken share in server view it reconnects
 
Ran into this today and mount -a didn't work for me after updating the password, nothing I tried would get the share to come back except:

Code:
pvesm set thestorage --user theuser --password
umount /mnt/pve/thestorage

I had multiple storages I had to update and one of them had an ISO mounted on a VM causing umount to fail, setting the cd drive to no media fixed it.
 

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!