Questions tagged [logind]
A daemon that manages user logins and seats. It is part of systemd.
54
questions
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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=...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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> (...
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) ...
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 ...
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 ...
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 ...
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....
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:
...
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 ...
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:
"...
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 ...
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 ...
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 ...
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", "...
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 ...
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? (...
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 ...
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, ...
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.
...
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 ...
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 ...
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....
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. ...
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 ...
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-...
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 ...
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:
-...
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'...
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 ...
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:
** (...
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?
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 ...
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 ...
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. ...
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 ...