When I use pct push to upload files into my lxc containers, I get weird permissions after setting them with -perms.
Here's an example bellow:
root@hapx1 ~ # pct push 102 logrotate /etc/cron.hourly/logrotate -perms 755
root@hapx1 ~ # pct enter 102
root@CT102:~# ls -lah /etc/cron.hourly/logrotate
--wxrw--wt 1 root root 89 Apr 20 10:16 /etc/cron.hourly/logrotate
Here's an example bellow:
root@hapx1 ~ # pct push 102 logrotate /etc/cron.hourly/logrotate -perms 755
root@hapx1 ~ # pct enter 102
root@CT102:~# ls -lah /etc/cron.hourly/logrotate
--wxrw--wt 1 root root 89 Apr 20 10:16 /etc/cron.hourly/logrotate