You are not logged in.

#1 2022-04-26 18:48:27

Aram1s
Member
Registered: 2022-01-16
Posts: 25

Trouble logging in with tty autologin [SOLVED]

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

#2 2022-04-26 19:00:48

dogknowsnx
Guest

Re: Trouble logging in with tty autologin [SOLVED]

Aram1s wrote:

I did not find this folder: "/etc/systemd/system/getty@tty1.service.d/"

".d"-folders you usually have to create yourself

Aram1s wrote:

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:

whoami

Last edited by dogknowsnx (2022-04-26 19:01:38)

#3 2022-04-26 19:04:25

Aram1s
Member
Registered: 2022-01-16
Posts: 25

Re: Trouble logging in with tty autologin [SOLVED]

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

#4 2022-04-26 19:11:53

dogknowsnx
Guest

Re: Trouble logging in with tty autologin [SOLVED]

Aram1s wrote:

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.

#5 2022-04-26 19:15:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,484
Website

Re: Trouble logging in with tty autologin [SOLVED]

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

#6 2022-04-26 19:37:36

Aram1s
Member
Registered: 2022-01-16
Posts: 25

Re: Trouble logging in with tty autologin [SOLVED]

Thanks, I found out how to fix it with chroot.


my .xinitrc sucks

Offline

#7 2022-04-26 19:42:50

dogknowsnx
Guest

Re: Trouble logging in with tty autologin [SOLVED]

Trilby wrote:

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)

Board footer

Powered by FluxBB