Comment 8 for bug 1389305

Revision history for this message
Adam Ryczkowski (adam-ryczkowski) wrote : Re: [Bug 1389305] Re: sudo doesn't work on unprivileged lxc container

On 19.11.2014 15:35, Serge Hallyn wrote:
> Ah, the ecryptfs $HOME might be the problem. I haven't tested that
> and wouldn't be surprised if ecryptfs prevented the console from
> looking ok. Could you try something like:
>
> rm -rf $HOME/.config/lxc $HOME/.local/share/lxc
> sudo mkdir /opt/lxc
> sudo chown -R $USER /opt/lxc
> mkdir /opt/lxc/config /opt/lxc/store
> ln -s /opt/lxc/store $HOME/.local/share/lxc
> ln -s /opt/lxc/config $HOME/.config/lxc
>
> Then re-try the container create/setup. This will create the
> container rootfs on a non-ecryptfs filesystem.
>
Yes! That resolved the problem. Thank you!

Would you be able to tell me, why ecryptfs pose a problem for a sudo in
a container?

Adam