No password mechanism???

Gilberto Ferreira

Renowned Member
Hi there folks

Hope everyone is in good time.

I've had create this script:
#!/bin/bash

while read a
do

PBS_REPOSITORY="root@pam@SERVER_IP2:backup"
PBS_PASSWORD="good_password"
PBS_FINGERPRINT="some_numbers"

proxmox-backup-client change-owner --repository=$PBS_REPOSITORY $a admin@pbs

done < vm-groups.txt

In the vm-groups.txt I have a lot VMS groups like that:
vm/100
vm/101
vm/102
vm/103
vm/104
vm/105
vm/106
vm/107
vm/108
vm/109
vm/110
vm/111
vm/112

So it's one per line, right?

When I ran the script I got this error:
Error: error building client for repository root@pam@SERVER_IP2:backup - no password input mechanism available

Why? What do I missing here?

Thanks a lot for any clue!

Best regards.
 

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!