Questions tagged [logind]

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

Filter by
Sorted by
Tagged with
1 vote
2 answers
202 views

Arch linux on laptop disables wifi after lid close/open

I have a laptop with Arch Linux using NetworkManager. Every time I close the lid, WiFi gets disabled (rfkill shows "soft blocked"). I have tried everything: disabling powersave, ...
MrFox's user avatar
  • 11
1 vote
0 answers
46 views

How to login to systemd-based Linux if there are no /dev/tty[0-9]* devices?

I am forced to use a kernel without virtual console support. There is only a /dev/tty device. As a userspace, I use the Debian testing distribution. In rescue mode, I checked that it is possible to ...
Pavel Samsonov's user avatar
0 votes
1 answer
73 views

How can I prevent normal users from being able to look up other logged-in users?

For security and privacy reasons, I want to stop logging logins, as well as hiding information about currently logged-in users. So far, I tried revoking reading permissions to utmp and wtmp: sudo ...
kylex's user avatar
  • 15
1 vote
1 answer
200 views

Using sessions created other than by login with systemd-homed?

I've been experimenting with systemd-homed, and have mostly successfully migrated an account over to it using the procedure here. When logging in conventionally, via login(1), everything works exactly ...
Cerebrate's user avatar
1 vote
1 answer
555 views

sys-kernel-debug, and logind service fail causing noticeable delay on logging in

Background/Context Im running a Debian GNU/Linux 11 (bullseye) x86_64(5.4.174-2-pve) virtualized server on a LVC container(proxmox stuff). Im really new to both debian(i tipically use arch linux which ...
Imeguras's user avatar
  • 133
4 votes
1 answer
1k 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 ...
jrpear's user avatar
  • 374
5 votes
1 answer
1k 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. ...
Damn Vegetables's user avatar
0 votes
1 answer
270 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 ...
OJFord's user avatar
  • 1,884
1 vote
0 answers
1k 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 ...
Grzegorz Skrzyński's user avatar
3 votes
0 answers
748 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=...
Adel M.'s user avatar
  • 338
4 votes
0 answers
129 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 ...
obadz's user avatar
  • 186
1 vote
1 answer
358 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 ...
Max404's user avatar
  • 33
0 votes
1 answer
413 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 ...
dnaik's user avatar
  • 133
0 votes
1 answer
228 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 ...
Quagmire's user avatar
0 votes
0 answers
537 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 ...
grobber's user avatar
  • 111
2 votes
1 answer
528 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 ...
chkuendig's user avatar
3 votes
2 answers
4k 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> (...
OJFord's user avatar
  • 1,884
2 votes
1 answer
358 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) ...
Rich's user avatar
  • 803
4 votes
1 answer
2k 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 ...
davolfman's user avatar
  • 544
2 votes
1 answer
3k 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 ...
MysteryMoose's user avatar
0 votes
0 answers
79 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 ...
Hossein's user avatar
  • 243
4 votes
0 answers
649 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....
alpipego's user avatar
  • 141
3 votes
1 answer
3k 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: ...
gluttony's user avatar
  • 161
2 votes
1 answer
1k 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 ...
gluttony's user avatar
  • 161
1 vote
1 answer
291 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: "...
fraleone's user avatar
  • 767
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 ...
albertma789's user avatar
2 votes
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 ...
Martin Ueding's user avatar
2 votes
2 answers
654 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 ...
Manu T.'s user avatar
  • 55
4 votes
1 answer
2k 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", "...
Tom Hale's user avatar
  • 29.4k
1 vote
2 answers
761 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 ...
rubund's user avatar
  • 271
1 vote
0 answers
2k 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? (...
Tim's user avatar
  • 100k
1 vote
1 answer
316 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 ...
Charles Wilson's user avatar
3 votes
1 answer
3k 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, ...
Matthias Braun's user avatar
3 votes
0 answers
10k 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. ...
laH_0009's user avatar
2 votes
1 answer
253 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 ...
sourcejedi's user avatar
  • 49.3k
3 votes
1 answer
774 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 ...
sourcejedi's user avatar
  • 49.3k
7 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....
strNOcat's user avatar
  • 383
2 votes
0 answers
214 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. ...
sourcejedi's user avatar
  • 49.3k
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 ...
sourcejedi's user avatar
  • 49.3k
0 votes
0 answers
113 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-...
philx_x's user avatar
  • 195
3 votes
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 ...
nisargjhaveri's 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: -...
galois's user avatar
  • 241
10 votes
3 answers
80k 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'...
lmazgon's user avatar
  • 331
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 ...
MikeV's user avatar
  • 1,390
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: ** (...
Ell's user avatar
  • 91
2 votes
1 answer
691 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?
Jodka Lemon's user avatar
  • 3,153
6 votes
2 answers
5k 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 ...
Sambatyon's user avatar
  • 163
12 votes
2 answers
5k 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 ...
jdbow75's user avatar
  • 273
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. ...
Mikhail Morfikov's user avatar
1 vote
0 answers
201 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