You are not logged in.
I’m trying to make a custom iso with archiso, currently I just have the standard profile with plasma-meta, kitty, and xorg-xinit installed. When booting the iso the shell is zsh as expected, but when I launch kde with startx it changes the shell to bash. If I switch to another tty the shell changes back to zsh
I’m not sure if this is because I’m using the root account rather than a normal user, or if it’s something weird to do with using startx as I usually use SDDM on an actual install, I’m not having much luck with Google as I just keep getting results telling me how to automatically run startx when logging into bash/zsh.
The shell for root is listed as /usr/bin/zsh in /etc/passwd so chsh makes no difference, but echo $SHELL returns /bin/bash
Last edited by Infernal_pizza (2024-10-12 23:23:14)
Offline
It clearly doesn't change the shell as you noted zsh is still listed in /etc/passwd. I gather you mean that when you start some gui terminal emulator it runs bash instead, right? If so, fix your terminal emulator: most of them have options to specify what shell to run as well as whether or not to run a login shell (which by default most of them do not).
That said, running a graphical session, especially a full DE, as root is a horrific idea. Please do not do this.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks that sorted it. Why is it bad to run the DE as root if its just a live iso? I understand why you wouldn't do it on a real system but I didn't think it mattered just for the live iso.
Offline
It does matter. The fact that a game of Russian Roulette is kept short doesn't mean it is safe. There really isn't much difference in the risks except for the timescale within which any damage / exploitation would have to act. And that is - at best - security through obscurity: it's doing something completely unsafe, but assuming that doing so for a (relatively) short period of time would somehow make it safe. It doesn't.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Makes sense, I'll add a different user account
Offline