Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [logind]

A daemon that manages user logins and seats. It is part of systemd.

2
votes
2answers
24 views

Differentiate internal and external monitors

I am looking for a consistant way of getting the name of the built-in monitor in a laptop. To be exact, I am looking for the name of the monitor that will be turned off when the lid is closed. I was ...
4
votes
1answer
118 views

What does logind.conf `IdleAction=kexec` do exactly?

The logind.conf man page says: IdleAction= Configures the action to take when the system is idle. Takes one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-...
1
vote
1answer
68 views

Systemd user service not starting at boot even though lingering is enabled (user via NIS)

Lingering has been enabled with loginctl enable-linger However, the user services do not start before logging in with the user. The services remain active when logging out again. Is something extra ...
0
votes
0answers
407 views

What is a “Systemd login session”?

I read https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825394#221, but I wonder what a "systemd login session" is? Is it called more frequently as a "systemd logind session"? Is it some process? (...
1
vote
1answer
35 views

Setting up VM login instead of Local login [closed]

I had a question earlier, it is tied into this, that one was looking for the proper procedure, this one is looking how to implement. If you need a backstory refer to My first question I have a local ...
2
votes
1answer
392 views

Shutdown, suspend require authentication when scheduled in at

I'd like to suspend my laptop using at: echo "systemctl suspend" | at now + 5 minutes Suspension does not happen, instead I find a mail from at in /var/spool/mail/me: Failed to set wall message, ...
2
votes
0answers
2k views

can't boot Linux due to Login service failing to start

I am having a bit of trouble with my linux mint 18.3 (based on Ubuntu 16.04) since I can't manage to properly boot it on my computer. I have a dual-boot and windows launch properly, so there is that. ...
2
votes
1answer
94 views

Why does systemd *not* have `/dev/dri/…` open?

Right now my system is doing disk IO when I switch from a text console on tty6 to GNOME on tty3. 1.4GB of swap is in use. On tty6, I ran sudo lsof -p 1 | grep dev, to check if it was a similar issue ...
0
votes
1answer
334 views

Does the current version of Xorg listen for the systemd-login session being closed?

Xorg integrates with systemd-logind, allowing it to effectively open the devices it needs without being run as the super-privileged root user. When the systemd-logind session ends, systemd-logind ...
5
votes
0answers
578 views

How to lock screen on lid closing using systemd?

I know that this has been asked around internet a lot of times. However, all of the solutions are different, assume a lot of knowledge of systemd's details and none of them seem to work for me anyway. ...
1
vote
0answers
90 views

Does anyone assign significance to the `Leader` process in a systemd-logind session?

The first process in a pam_systemd session is called the Leader. E.g. it can be killed with loginctl --kill-who=leader kill-session SESSION_ID. pam_systemd puts the leader in a session scope unit. ...
0
votes
1answer
480 views

Why is a systemd user manager used in desktop sessions e.g. GNOME?

Desktops such as GNOME have moved processes from the per-session scope, into the per-user systemd manager (systemd --user). This includes GUI apps such as GNOME Terminal. What does GNOME use the ...
0
votes
0answers
55 views

run command before/while systemd-logind

I'd like to run a command, i.e. archhey3 just before or rather while logind is prompting for username and password at the virtual console. Can someone point me in the right direction? checked the arch-...
1
vote
1answer
668 views

loginctl doesn't show anything

I have an headless Raspbian Jessie on a Raspberry Pi. I've set it up as read-only root to prevent SD card corruption. When I try to use loginctl on it, it doesn't show any active sessions. But as I ...
2
votes
1answer
941 views

Where does the pam_systemd.so line come from in system-auth and password-auth?

After converting a server to use SSSD for authentication the following line in /etc/pam.d/system-auth and /etc/pam.d/password-auth caused very long (10-20 second) hangs when SSHing into the server: -...
4
votes
2answers
28k views

Cannot login: Failed to start Login Service

I've got a VirtualBox instance of Oracle Linux 7.2 which won't start because of Failed to start Login Service. On the booting sequence the process hangs on this message and doesn't continue, so I can'...
1
vote
1answer
1k views

Centos7 on NUC suspends when power button is pressed

Platform: Intel NUC NUC5CPYH OS: Centos 7 with 3.10.0-327.22.2.el7.x86_64 When I press the chassis power button, the system goes in to suspend mode instead of the expected poweroff. This seems ...
3
votes
1answer
790 views

Lightdm Won't Start in Test Mode With OpenRC

I have a funtoo installation and I recently did sudo emerge x11-misc/lightdm which appeared to work fine, but attempting to start lightdm in test mode with sudo lightdm --test-mode gives this: ** (...
2
votes
1answer
443 views

Give specific user permission to kill other users with logind?

Is it possible to give one user (the "main user") the permission to kill other users using logind/loginctl?
4
votes
2answers
2k views

How does the Linux login work? [duplicate]

I am wondering how the login actually works. It certainly is not part of the kernel, because I can set the login to use ldap for example, or keep using /etc/passwd; but the kernel certainly is able to ...
7
votes
1answer
2k views

How do I tell systemd-logind that the session is not idle, without using a desktop environment or session manager?

I want to use logind for power management. After 30 minutes of inactivity, I would like the computer to suspend. Problem is, right now, it suspends after 30 minutes, even when I am active with mouse ...
11
votes
4answers
2k views

Is there a way to set permissions so a process could use a specific device?

As you can read, for instance here, logind, which is a part of systemd, can set permissions to some devices for user sessions. There's also a vid showing how this kind of behavior works in practice. ...
1
vote
0answers
189 views

Fedora 21 VT Change Hangs

On Fedora 21, I have LightDM and i3 installed. When I switch to tty2 and do a bit of work then switch back, my laptop hangs. I am using Intel HD Graphics 4600. Thanks UPDATE now it sometimes ...
1
vote
1answer
4k views

Changing systemd HandleLidSwitch setting during run-time?

The setting HandleLidSwitch is defined in /etc/systemd/logind.conf as follows: HandleLidSwitch=<hibernate,ignore,...> The setting is applied successfully on boot. However, I would like to ...
4
votes
1answer
4k views

How do I get Debian to use systemd-logind for user session control?

I have one Debian Sid system that uses logind for its user sessions. It is odd that that system is not even running systemd. The logind sessions are independent of X and are in effect for the tty ...
2
votes
1answer
1k views

How to preserve the logind session in Arch Linux?

I got audio working in Arch Linux without problems yesterday, but at some point it stopped working again: $ alsamixer cannot open mixer: No such file or directory $ vlc foo.mp4 ... [0x7f1388006be8] ...
0
votes
1answer
149 views

Gajim, gtalk, and logind

Since the Google talk outage earlier this month, I keep not being able to connect using gajim. I tried deleting all the configuration, updated to the latest development version, and tried in different ...