You are not logged in.

#1 2025-06-19 18:14:24

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 58

User authentication just after started DE/WM

I don't want to use a display manager. Possibly I had no choice more than autologin my user, I want to boot, and start directly the DE/WM, just then ask for authentication.

I made this with autologin and automatically starting GNOME in this case, GNOME starts this script at its start, that spams pkexec until you input the correct passdw, blocking the screen, it is just the base. It possibly needs more security. Is there a program that do this better? Or also, how I can improve all this to be more secure?

#!/bin/bash

 sleep 1 # Wait for the DE/WM

 while true; do

 pkexec
    
 if [ $? -eq 0 ]; then
        
      break

 fi

 done

Last edited by FrancisArcher_60 (2025-06-19 18:22:28)

Offline

#2 2025-06-21 11:50:31

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,723

Re: User authentication just after started DE/WM

Context?
Afaiu the default gnome screenlocker completely depends on GDM, but at least on X11 you can just start a screen locker (slock, i3lock, xscreensaver…) - ideally after the display server but before the rest of the session.
Whether it's possible to lock the screen on gnome-wayland w/o running GDM, idk.

Offline

Board footer

Powered by FluxBB