New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not log into the GDM user #8634

mihjok opened this Issue Mar 31, 2018 · 1 comment


2 participants

mihjok commented Mar 31, 2018

Submission type

  • Bug report

systemd version the issue has been seen with


Used distribution


In case of bug report: Expected behaviour you didn't see

I should be able to log into the GDM user with sudo machinectl shell gdm@

In case of bug report: Unexpected behaviour you saw


Connected to the local host. Press ^] three times within 1s to exit session.
/sbin/nologin: invalid option -- 'l'
Try 'nologin --help' for more information.
Connection to the local host terminated.

In case of bug report: Steps to reproduce the problem

Enter the command from the above.


This comment has been minimized.


poettering commented Apr 3, 2018

hmm, the current code uses the shell configured in /etc/passwd for it.

I am not sure we should change behaviour here in this regard, as "systemd-run -t /bin/sh" is probably the better approach for operations like this, where you actively want to override some user setting (i.e. the shell)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment