Chown within unprivileged LXC

MisterY

Renowned Member
Oct 10, 2016
140
4
83
38
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.