[lxc-users] Status: Debian Jessie support for unprivileged containers?

Xavier Gendre gendre.reivax at gmail.com
Fri Jan 8 20:40:12 UTC 2016


Hello Carlos,

> Once you replace systemd with sysvinit in the container, you get it
> booting and starting the services, but you can't login on it (via the
> login prompt) or ssh on it.

I didn't know that, i always use lxc-attach to get a prompt in my
containers and it works like a charm.

> You will get the following error:
> 
> " Cannot make/remove an entry for the specified session "
> 
> This is caused because Debian now requires pam_loginuid for both login
> an sshd
> 
> # grep pam_loginuid  /etc/pam.d/*
> /etc/pam.d/login:session    required     pam_loginuid.so
> /etc/pam.d/sshd:session    required     pam_loginuid.so
> 
> You have to remove that line from both files to be able to login on the
> container via the login prompt or via ssh

Thanks for that point, i will use it one day if i need to properly login
or ssh into one of my containers.

Xavier



More information about the lxc-users mailing list