[Lxc-users] lxc-start an application as non-root

Felix Geisendoerfer felix at debuggable.com
Fri Dec 23 11:49:13 UTC 2011


Hi,

I'm trying to figure out how to use lxc to run a single application as a
non-root user.

The following seems to work, but I'm wondering if there is way to directly
instruct lxc to use a certain user rather than using sudo to drop root
privileges inside the container:

--------------------------------------------------------------------
$ xc-start -n my-container -- sudo -u myuser whoami
myuser
--------------------------------------------------------------------

Many thanks in advance,
--
Felix Geisendörfer (felixge.de)
Co-Founder, Debuggable Limited (debuggable.com <http://www.debuggable.com>)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20111223/f20dcddb/attachment.html>


More information about the lxc-users mailing list