Machine shell: Connection to the local host terminated

For some time now I’ve been using machine shell to get local root access. But when I updated yesterday (from Nixpkgs commit 17317ace7fb805f192bcf5595e41d18b09f9b497 to 6d3b61b190a899042ce82a5355111976ba76d698), this stopped working. I now immediately get the message:

Connection to the local host terminated.

journald shows:

container-shell@3.service: Failed to set up PAM session: Operation not permitted
container-shell@3.service: Failed at step PAM spawning /bin/sh: Operation not permitted
container-shell@3.service: Deactivated successfully.

Any ideas?

Looks like it’s this: systemd: Connection to the local host terminated. · Issue #493934 · NixOS/nixpkgs · GitHub

It’s a util-linux packaging issue, fix is here: util-linux: Ensure that liblastlog is linked with libpam by numinit · Pull Request #495347 · NixOS/nixpkgs · GitHub

2 Likes