You are not logged in.
I was trying to set up autologin described on the arch wiki here:
https://wiki.archlinux.org/title/Getty
I did not find this folder: "/etc/systemd/system/getty@tty1.service.d/" described on the arch wiki.
I instead found another folder named similarly, but i can't remember exactly. Inside there was a file which contained this: "
[Service]
ExecStart="
That made me believe that is was the correct file, which it seems it is.
I pasted in this: "ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin username - $TERM" on the next line.
I restarted and found out what i had done wrong. username was not replaced with the actual username.
I now get this when i try to log in: "
arch login : username (automatic login)
User not known to the underlying authentication module"
I found out how to change the tty1 to tty2 with ctrl+alt+f2, but this does not change anything.
Is it possible to login somehow so that i can fix it? Or potentially some other method where i can change the appropriate file?
Last edited by Aram1s (2022-04-26 19:38:07)
my .xinitrc sucks
Offline
I did not find this folder: "/etc/systemd/system/getty@tty1.service.d/"
".d"-folders you usually have to create yourself
I pasted in this: "ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin username - $TERM"
You have to actually insert your username - if you don't know who you are:
whoamiLast edited by dogknowsnx (2022-04-26 19:01:38)
I know, but I can't do any commands or anything since I am locked out. As i said earlier I know what I did wrong, but I can't fix it.
Last edited by Aram1s (2022-04-26 19:09:43)
my .xinitrc sucks
Offline
I know, but I can't do any commands or anything since i am locked out. As i said earlier i know what i did wrong, but i can't fix it.
Missed that part - you can use your installation medium to chroot into your system and "repair" it.
Or just append "systemd.unit=rescue.target" to your kernel line in your bootloader for one boot. Once botted, undo whatever change you did to the service file: it sounds like you enabled autologing (for a non-existing user) on *every* tty. Then you should be able to reboot normally.
Last edited by Trilby (2022-04-26 19:16:13)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks, I found out how to fix it with chroot.
my .xinitrc sucks
Offline
it sounds like you enabled autologing (for a non-existing user) on *every* tty
That point is crucial and it's why you should follow the wiki (and use the "/etc/systemd/system/getty@tty1.service.d/" folder)