[Bug 1090462] [NEW] lxc-info, lxc-stop and lxc-list doesn't work for non-root users
Gleb Peregud
gleber.p at gmail.com
Fri Dec 14 16:43:53 UTC 2012
Public bug reported:
Hello
After running both "sudo lxc-setuid" and "sudo lxc-setcap", both lxc-
info and lxc-stop still doesn't work. Here's an example:
gleber at first:/etc/apt/sources.list.d$ lxc-start-ephemeral -d -o ci1
Setting up ephemeral container...
Starting up the container...
ci1-temp-RTqI6s8 is running
You connect with the command:
sudo lxc-console -n ci1-temp-RTqI6s8
gleber at first:/etc/apt/sources.list.d$ lxc-info -n ci1-temp-RTqI6s8
lxc-info: failed to get state for 'ci1-temp-RTqI6s8': Permission denied
gleber at first:/etc/apt/sources.list.d$ lxc-stop -n ci1-temp-RTqI6s8
lxc-stop: failed to stop 'ci1-temp-RTqI6s8': Permission denied
I've tried extending "lxc-setuid" and "lxc-setcap" to add setuid and
caps to lxc-stop and lxc-info, but failed to make it work.
lxc version is (installed from Raring):
gleber at first:/etc/apt/sources.list.d$ sudo aptitude show lxc | grep Version
Version: 0.8.0~rc1-4ubuntu48
Ubuntu version is:
gleber at first:/etc/apt/sources.list.d$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
Best,
Gleb
** Affects: lxc (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1090462
Title:
lxc-info, lxc-stop and lxc-list doesn't work for non-root users
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1090462/+subscriptions
More information about the Ubuntu-server-bugs
mailing list