Questions tagged [loginctl]
The loginctl tag has no usage guidance.
16
questions
5
votes
2
answers
1k
views
Has “loginctl enable-linger user” made the UNIX classic “nohup” superfluous? Or have I misunderstood something?
I have read about loginctl enable-linger user and /etc/systemd/logind.conf
(KillExcludeUsers=user1 user2 user3)
Oracle Linux: Configure Systemd to Enable User Processes to Continue to Run After Logout
...
0
votes
0
answers
52
views
how to know graphic current user(s) and DISPLAY(s) by root
Gentoo, openrc, X11.
Hi,
For my suspend process, I need to get something like
[user] [DISPLAY]
for example:
chris :0
I can do it with:
for sessionid in $(/bin/loginctl list-sessions --no-legend | ...
0
votes
1
answer
331
views
How to determine the graphical tty in loginctl
Loginctl lists a lot of sessions, and I want programmatically to know which one is a graphical session (e.g. GNOME desktop).
In the example below, I have a GNome desktop session open, an ssh ...
4
votes
0
answers
2k
views
Why is my user manager not starting up correctly?
I am running Ubuntu 22.04 on WSL2 with systemd support enabled. My configuration worked fine until two days ago. I use TMUX and its plugins tmux-resurrect and tmux-continuum, the later one already ...
2
votes
0
answers
680
views
udev rule to attach bluetooth headset to seat
I have a multiseat setup using loginctl and I'm having issues with a bluetooth headset.
The USB bluetooth dongle in on seat0 but my display number :N changes randomly on restarts and my headset ...
3
votes
0
answers
545
views
How to attach virtual (SSH) session to (systemd) seat0?
I am logging in on a PC using SSH and need to access some devices which are attached to seat0.
loginctl shows that my session is not attached to any seat:
SESSION UID USER SEAT TTY
50 ...
5
votes
0
answers
161
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 ...
5
votes
1
answer
2k
views
How do I configure loginctl lock-sessions with i3?
Currently, I'm using i3 with xscreensaver. I would like to configure loginctl such that lock-session and lock-sessions. How is this supposed to be done?
lock-session [ID...], unlock-session [ID...]
...
1
vote
1
answer
658
views
ACLs not applied on device by udev on user login
so there is a usb scanner:
Bus 001 Device 003: ID 055f:021e Mustek Systems, Inc. BearPaw 1200 TA/CS
and a logged in user, registered in loginctl:
[mk@linux ~]$ loginctl session-status
1 - mk (1000)
...
7
votes
0
answers
3k
views
How to start user session (login user graphically) from CLI?
We can use loginctl in modern distributions with systemctl to control the user sessions, seats etc. E.g. with it is is trivial to logout users and works on all desktop environments.
However, can I ...
4
votes
0
answers
787
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....
2
votes
1
answer
11k
views
Why is vnc connection to linux lock screen "locked out" with no way to enter password?
From my Windows box, I connect to my Linux box using VNC viewer/server.
On the Linux box, when my session times out, and after the lock screen kicks in, if I subsequently try to unlock using the gui, ...
2
votes
3
answers
5k
views
log in to a desktop manager using commands typed on a different tty
Say a computer is booted to its desktop manager (SDDM, in this case) and you want to send a command over ssh to make that computer log in as a particular user as if they logged in with the keyboard at ...
3
votes
1
answer
3k
views
Terminating a session using loginctl
I am trying to use "loginctl" to terminate a session like below:
loginctl terminate-session 1
where 1 is session id. But after the command is executed, black screen is observed & I have to click ...
4
votes
1
answer
9k
views
Process id to loginctl session id
I am having one "small" problem :)
If I run command
loginctl list-session
I will get output that will have columns session, uid, user and seat.
So I have session here as c6, c2, c4, etc.
Also, I ...
2
votes
1
answer
704
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?