Public bug reported:
Files in the container transferred with "lxc file push" have very bad
default permissions:
$ lxc launch images:ubuntu/xenial/amd64
$ echo hello | lxc file push - odontoid-corinne/tmp/hello.txt
$ lxc exec odontoid-corinne -- ls -l /tmp/
total 4
---x--x--- 1 ubuntu ubuntu 6 Feb 23 15:40 hello.txt
Even specifying them explicitly with --mode is broken:
$ echo hello | lxc file push --mode=644 - odontoid-corinne/tmp/hello.txt
$ lxc exec odontoid-corinne -- ls -l /tmp/
total 4
--w-r--r-- 1 ubuntu ubuntu 6 Feb 23 15:42 hello.txt
$ echo hello | lxc file push --mode=444 - odontoid-corinne/tmp/hello.txt
$ lxc exec odontoid-corinne -- ls -l /tmp/
total 4
-rw-r-xr-- 1 ubuntu ubuntu 6 Feb 23 15:43 hello.txt
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lxd 2.0.0~beta3-0ubuntu4
ProcVersionSignature: Ubuntu 4.4.0-6.21-generic 4.4.1
Uname: Linux 4.4.0-6-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: i3
Date: Tue Feb 23 16:42:19 2016
EcryptfsInUse: Yes
SourcePackage: lxd
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: lxd (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug xenial
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1548878
Title:
lxc file push creates broken permissions
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1548878/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs