Comment 4 for bug 1420379

Revision history for this message
Tom Haddon (mthaddon) wrote :

I think my branch is dependent on lp:~foli/mojo/mojo-sudo-fix because currently you *have* to run project-new using sudo, which means the container is created as root. We *could* drop back to the user to run the container creation parts, but that seems pretty messy.

The other issue to deal with is project_root. If this is left as the default, we'd currently still need sudo permissions to create the directory. It'd be nicer to default to a location the user can write to (likely ~/.local/share/mojo) for unprivileged LXC so that no part of creating or destroying a project needs sudo permissions. Possibly we should default to /srv/mojo for "lxc" and ~/.local/share/mojo for "unprivilegedlxc".