pct push -perms problem

par

New Member
Apr 20, 2016
2
0
1
43
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
 
the -perms are decimal by default, but you can prefix them with '0' for octal or '0x' for hex. this should probably be included in the description ;)