#stuck in SDDM because I only have a root user

1 messages · Page 1 of 1 (latest)

south maple
#

can I use liveCD to create a new user? I can't login to SDDM because I have no user other than root. and I can't access TTY for some reason I don't understand.. and I can't boot into recovery mode from grub..

young flame
#

Tty, log in as root, add a user

noble warren
#

profit

young flame
#

probably want a bit more than just add user username

#

useradd -mG wheel <username> -If you don't want the user to be able to sudo remove wheel, if you do keep wheel and uncomment the first line that says 'wheel' in /etc/sudoers
passwd <username>
And instead of reboot just do systemctl restart SDDM

#

I mean can reboot if you want but, may as well just restart SDDM

#

@south maple you can do the above from chrooting in if you prefer for some reason, but there's no need. TTY is your friend, I didn't give more detail before because I was on my phone, didn't want to type the commands from there

young flame
#

I’ll have to look that up after my film

noble warren
#

mG sets primary group

#

mainGroup

#

i think

#

try using aG, for appendGroup

young flame
#

Is there any practical difference for systems with single users?

noble warren
#

compatibility mostly

#

give me one second actually, i'll get back to you with hard facts and science

#

@young flame nvm we both dont know what we are talking about apparently 🐱

#

but yes, you want to use -aG. for compatibility you typically want your main user's main group to be the user's own group. ie if your user is vegancookies, your main group should also be vegancookies, because it is your main group that determines group ownership on the files you create.

young flame
#

That makes more sense

noble warren
noble warren
#

@south maple this

dusty spindle
noble warren