:: [DNG] obsoleting a login manager (w…
Top Page
Delete this message
Reply to this message
Author: spiralofhope
Date:  
To: dng
Old-Topics: Re: [DNG] What I learned at Distrowatch
Subject: [DNG] obsoleting a login manager (was: What I learned at Distrowatch)
On Sat, 12 Dec 2020 21:15:32 -0500
Steve Litt <slitt@???> wrote:

> On Fri, 11 Dec 2020 15:53:35 +0100
> Didier Kryn <kryn@???> wrote:
>
>
> >     I don't make it an argument against xdm. Just cheating about
> > your own arguments (~:
>
> Didier, why didn't you make that suggestion to me 15 years ago? It's a
> brilliant way to guarantee that if somebody logs out of X, they have
> no logged in shell to make mischief with.
>
> I should have thought of that myself. 15 years ago :-).



I'll make an argument against xdm and every login manager (for a
single user): Just have the regular shell at certain TTYs launch X upon
login. A snippet of it:

\xinit /etc/X11/xinit/xinitrc -- /usr/bin/X :$(( tty_to_use - 1 )) \
vt"$tty_to_use" -auth "$( \tempfile --prefix='serverauth.' )"

logout

There's more code that makes the above work. See:
https://github.com/spiralofhope/shell-random/blob/master/live/zsh/dot_zsh/4-login.sh

It should work in dash. It's only kept in a zsh dotfile out of
laziness.

My method has always felt dirty and insecure, and I don't know why I
haven't been using exec to remove the final process. Maybe I just
didn't know any better. I'll explore the problem one day later.

This notion is from my legacy days when I wanted to make Linux
"lighter".