Chown within unprivileged LXC

MisterY

Well-Known Member
Oct 10, 2016
140
4
58
37
Hi,

I moved files on the proxmox-Host from one LXC to another (both were mountpoints on a different zfspool than rpool). I would like to chown the file owner, but I get "operation not permitted". How can I set the correct owner?

I want to set "www-data" as owner.
 
I would like to chown the file owner, but I get "operation not permitted". How can I set the correct owner?
Either do the chown while you login (or sudo -u) as the current owner of the file, or do it from the Proxmox host (with respect to the user/group mappings). The root user in an unprivileged container is not special and just sudo won't work as you may expect.
 

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!