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>)
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to