Questions tagged [logind]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
56 views

Why isn't a systemd user session started by `su`?

When I use ssh to log in to the root user on my server, an entry 0 is created in /var/run/user because pam_systemd tells systemd-logind to do this. This is an indicator that a user session has been ...
user avatar
  • 147
3 votes
1 answer
35 views

systemd-logind.service, get current settings?

The logind.conf page says something about compiled defaults and multiple configurations files that has precedence rules. All those make it difficult for me to figure out what the current setting is. ...
user avatar
0 votes
1 answer
94 views

SIGSEGV address boundary error shortly after waking from sleep

After resuming from a hybrid-sleep, I can log in (swaylock) and initially it seems ok - pwd, journalctl -xe run as expected in the shell still open from when I put it to sleep. After a short while ...
user avatar
  • 1,608
0 votes
0 answers
339 views

systemd-logind.service doesn't work (NAMESPACE error)

The problem that occurred to me goes as follows. I became the admin of a recently launched Linux machine. The specs are: Kernel: 5.13.19-1-pve OS: Debian GNU/Linux 11 (bullseye) At first, I noticed ...
user avatar
0 votes
0 answers
107 views

How get a headless Debian server on a laptop to switch off the screen but keep running when lid is closed?

I'm running a headless (no GUI, no desktop environment) Debian server on a laptop. I would like it to switch off the screen but keep running when lid is closed. I already tried setting HandleLidSwitch=...
user avatar
  • 148
2 votes
0 answers
74 views

Firefox seems to need “catchup time” after unlocking screen (using light-locker/lightdm)

(Possibly related to After unlocking light-locker, screen remains blank proportional to how long it's been locked) I’ve recently switched from xscreensaver to light-locker because of an annoying ...
user avatar
  • 156
1 vote
1 answer
155 views

Systemd Login Service not working properly | i3wm

I have a problem with the suspend on lid closure, which is not working anymore together wirh i3wm (with xfce it works). The systemd login service is running and also detects the lid close and open ...
user avatar
  • 33
0 votes
0 answers
158 views

Ignore laptop lid closing

I want my laptop to do nothing when I close the lid, plugged or unplugged. I already tried to set the options below in /etc/systemd/logind.conf, but it does not work. HandleLidSwitch=ignore ...
user avatar
  • 148
0 votes
1 answer
118 views

How do I set a delay before the system suspends on lid close

I am using i3wm on Ubuntu 20.04 without any DE so that shouldn't interfere with the functions. The default logind.conf makes the system suspend after I close the lid. I want it so that closing the lid ...
user avatar
  • 111
0 votes
1 answer
46 views

Root cannot install packages in rescue or chroot plus service errors

I am using Arch linux. Currently, I am having the trouble of: User Login Management failed User Login Management failed User Login Management failed User Login Management failed Kernel Module drm ...
user avatar
0 votes
0 answers
202 views

how to control hushlogin behavior with systemd-logind?

I am on Ubuntu 18.04, running the usual systemd setup. In particular, login is handled by systemd-logind.service. If I add a .hushlogin file to my home directory, all output I usually receive during ...
user avatar
  • 111
2 votes
0 answers
112 views

Multiseat Setup: Disable display manager and use TTY on one seat

I have the following setup (HP Microserver 8): Integrated Matrox G200eH connected to Integrated Lights Out (the PH Remote Management Console) which also simulates an integrated keyboard to the system ...
user avatar
1 vote
1 answer
972 views

Config file for enable-linger / disable-linger?

I know that loginctl enable-linger <user> and loginctl disable-linger <user> can be used to enable/disable linger for a user, and the status shown with loginctl show-user <user> (...
user avatar
  • 1,608
2 votes
1 answer
160 views

IdleAction=lock no longer works in systemd, correct?

Per logind.conf(5), the file has IdleAction=, and one of the values it can take is lock I have tried IdleAction=lock with IdleActionSec=1min (with a view to setting this to 15min for our organization) ...
user avatar
  • 763
3 votes
1 answer
871 views

How do I disable all login prompts, including on VT 1 on a systemd system

I'm running essentially an X-based kiosk program on an embedded Linux and I want to disable the ability to log-in under some configurations. I want to run some distro-nonspecific console commands in ...
user avatar
  • 383
2 votes
1 answer
1k views

Run Systemd Service as Another User with Logind Session

Question How do I run an arbitrary service as an arbitrary user at boot with a logind session (specifically including all of the goodies under /run/user/uid) created for this user and without having ...
user avatar
0 votes
0 answers
49 views

where can I find the explanation for logind exit codes?

I tried executing the following command, which fails and I get a return code of -6. I have looked up in the systemd/logind documentation, but couldnt find anything helpful in this regard. It only ...
user avatar
  • 223
3 votes
0 answers
422 views

xss-lock NoSessionForPIU and XDG_SESSION_ID empty

Some time ago (unfortunately, I didn't look into it right away), my screen locker stopped working. When I start xss-lock I get this error: Error getting current session: GDBus.Error:org.freedesktop....
user avatar
  • 131
4 votes
1 answer
2k views

Is it possible to run a script on power button press with systemd?

I looked around and didn't found anything on this, for what I've seen, people always have been satisfied with what logind.conf is offering, here is the interesting part of man logind.conf: ...
user avatar
2 votes
1 answer
924 views

How can I run a script on keyboard power key press with systemd?

I have a power key on my keyboard, and I want to run a script when it's pressed. I looked around and didn't found anything on this, for what I've seen, people always have been satisfied with what ...
user avatar
1 vote
1 answer
218 views

lid close and suspend to ram: Which software is involved?

In order to fix some reliability issues with suspend-to-ram (upon laptop lid being closed), I want to inquire which software is involved with this. So that I can resolve the following issues: "...
user avatar
  • 517
0 votes
1 answer
3k views

ssh & ftp time out. Activation of org.freedesktop.systemd1 timed out

I have a relatively old debian server running Jessie 8.11 uname -a Linux debian 3.16.0-6-amd64 #1 SMP Debian 3.16.57-2 (2018-07-14) x86_64 GNU/Linux Recently after restarting my machine I cannot ...
user avatar
1 vote
1 answer
1k views

NIS users sessions are incomplete after upgrade to Debian 10

I have recently upgraded the workstations from Debian 9 to Debian 10. With the old version people have been able to mount USB drives and play and record sound (for video conferences). After the update ...
user avatar
2 votes
2 answers
428 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 ...
user avatar
  • 45
4 votes
1 answer
1k 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", "...
user avatar
  • 24.9k
1 vote
2 answers
456 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 ...
user avatar
  • 251
1 vote
0 answers
1k 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? (...
user avatar
  • 90.7k
1 vote
1 answer
243 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 ...
user avatar
3 votes
1 answer
2k 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, ...
user avatar
3 votes
0 answers
8k 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. ...
user avatar
2 votes
1 answer
202 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 ...
user avatar
  • 44.5k
2 votes
1 answer
650 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 ...
user avatar
  • 44.5k
6 votes
1 answer
3k views

How to lock screen on lid closing using systemd?

I am running Sway on Fedora 26 and want my laptop to be locked when I close my screen. I changed HandleLidSwitch to lock in /etc/systemd/logind.conf and ran systemctl restart systemd-logind after that....
user avatar
  • 373
2 votes
0 answers
180 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. ...
user avatar
  • 44.5k
1 vote
2 answers
1k 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 ...
user avatar
  • 44.5k
0 votes
0 answers
106 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-...
user avatar
  • 195
1 vote
1 answer
2k 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 ...
user avatar
3 votes
1 answer
3k 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: -...
user avatar
  • 241
9 votes
3 answers
68k 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'...
user avatar
  • 301
3 votes
1 answer
2k 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 ...
user avatar
  • 1,350
4 votes
1 answer
1k 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: ** (...
user avatar
  • 91
2 votes
1 answer
664 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?
user avatar
  • 3,023
5 votes
2 answers
4k 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 ...
user avatar
  • 153
7 votes
2 answers
3k 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 ...
user avatar
  • 223
12 votes
4 answers
3k 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. ...
user avatar
1 vote
0 answers
200 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 ...
user avatar
2 votes
1 answer
5k 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 ...
user avatar
  • 885
4 votes
1 answer
5k 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 ...
user avatar
  • 486
2 votes
1 answer
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] ...
user avatar
  • 47.1k
0 votes
1 answer
168 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 ...
user avatar