Questions tagged [loginctl]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
110 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 ...
0
votes
0answers
11 views

How to specify loginctl unlock-sessions password when command is ran?

I'm currently developing an app that unlocks Linux desktops via a mobile phone fingerprint sensor and I am using the loginctl unlock-sessions command via an in app ssh session to unlock sessions. ...
0
votes
0answers
91 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....
0
votes
1answer
1k 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, ...
0
votes
2answers
343 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 ...
1
vote
0answers
419 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 ...
2
votes
1answer
2k 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
1answer
587 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?