[SOLVED] 'pct push' fails to get uid/gid

hasu

New Member
Apr 4, 2021
2
0
1
37
Hi,

I'm running pve-manager/6.3-6/2184247e (kernel: 5.4.106-1-pve) and I have a container running Debian 10. The following command:

Bash:
sudo pct push "$vmid" ~/share/.bashrc /root/.bashrc \
    --user root \
    --group root \
    --perms 644

Fails with the following message:

failed to get uid for: root

Dropping the --user option results in:

failed to get gid for: root

The command succeeds if I replace 'root' with a non-root user/group for the --user and --group options.

The following commands also succeed:

Bash:
sudo pct exec "$vmid" -- chown root /root/.bashrc
sudo pct exec "$vmid" -- chgrp root /root/.bashrc

Which suggests the problem is with my use of 'pct push'.

Any help is appreciated!
 
I can confirm that this issue exists. I'll have a closer look at it, but for now, entering 0 for the user and group is the easiest workaround to achieve what you want.
 

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!