serpent-os / recipes

Serpent OS Package Recipes
https://dash.serpentos.com
13 stars 6 forks source link

Make "live" user be an installable package #188

Open ermo opened 5 months ago

ermo commented 5 months ago

Ikey Doherty Yknow. I'm wondering if we're doing this arse backwards Shouldn't the live user just be another package. If moss taught us anything, don't rely on filesystem specific features ermo you know, that actually makes sense this is how it's done in exherbo, now that I think about it (this was before systemd had the functionality) Ikey Doherty Tmpfiles + userdb will cover most of it Just need to do something for automatic login A part of my brain considers making it a static feature of the repo, a guest account of sorts With a tmpfs home ermo no, it makes sense. It's a neat feature then anyone can use a PC temporarily (if the package is installed) and the session will disappear as soon as the PC is rebooted (or on logout?) Ikey Doherty And the installer package can bless the account with further permissions for live mode ermo yeah, feels like pattern that could potentially be fruitful Ikey Doherty Ie an explicit pkexec permission That way a normal install has no sudo escape with guest ermo makes sense

ermo commented 5 months ago

One thought:

Maybe we should name the package ephemeral-os-user or guest-os-user and then have the greeter field show "Guest User" normally, but "Live User" in the greeter for the ISO, but be named ephemeral in the actual OS files? Odds are that ephemeral isn't a user name that will be present on very many systems, whereas e.g. guest or live might be a different story?

Normal ephemeral-os-user install:

ephemeral:x:65432:65432:Guest User:/home/ephemeral:/bin/bash

ISO specialisation of ephemeral-os-user:

ephemeral:x:65432:65432:Live User:/home/ephemeral:/bin/bash