how to set timer on sudo loginctl lock-sessions to lock session in 15 minutes
- User
how to set timer on sudo loginctl lock-sessions to lock session in 15 minutes
- Assistant
To set up a timer that locks the session using
loginctl lock-sessionsafter 15 minutes on a Linux system, you can create a systemd timer. Here’s a step-by-step guide:-
Create the service file:
Start by creating a new service unit file. This file will define the action to lock the session. Use your preferred text editor to create the file:
sudo nano /etc/systemd/system/lock-session.service
-
- User
how can nvme ssd connect to pciX1
- Assistant