You are not logged in.
Pages: 1
Hello everyone, im trying to figure out how to enable virtual console autologin by following this guide, https://wiki.archlinux.org/index.php/Ge … al_console
It keep asking me to type the password everytime, but the user get loaded correctly what can be wrong with my system?I tried like 10 times i also saw some video and it should login without problem
(Sorry for my bad english)
Last edited by Skunky (2018-06-21 03:46:49)
Offline
Share your configs: see How To Ask Questions The Smart Way.
Offline
Thanks for the reply, here is my /etc/systemd/system/getty@tty1.service.d/override.conf if it can help, anyway i solved on my notebook removing the user password
(im the only one using the computer so..i could do the same on my desktop?)
[Service]
ExecStart=
ExecStart=-/usr/bin/mingetty --autologin io --noclear %I $TERM
Last edited by Skunky (2018-06-16 08:04:38)
Offline
Why do you use mingetty? The wiki uses agetty.
Offline
Why do you use mingetty? The wiki uses agetty.
Sorry i forgot to say i tried both in the attempt to make it work with no success i think i will just remove the user password at this point
Offline
Maybe your user needs to be in the tty group.
Offline
I removed the password for the user and everything works fine does it count as solved?
Offline
@ loqs, im unaware of the below step covered by the wiki?
# nano /etc/conf.d/agetty.tty1
# make agetty quiet
#quiet="yes"
# Set the baud rate of the terminal line
baud="38400"
# set the terminal type
term_type="linux"
# extra options to pass to agetty for this port
agetty_options="--autologin user"
Offline
It would be better of if the OP kept their password for the user.
Offline
Unneeded because Systemd#Editing_provided_units of getty@tty1.service does not need /etc/conf.d/agetty.tty1
Even though Skunky sucessfully editted the service file it failed as you can not login to a password protected account with only a username.
Seventh and you have tried the service file you are advocating and you can log in to a password protected users account with only a username?
Offline
I removed the password for the user and everything works fine does it count as solved?
Whether or not it counts as solved is up to you - are you satisfied with that workaround? I wouldn't be. The methods linked in your first post will work just fine with a user password. I'm not (yet) sure what the next step in troubleshooting your setup would be to figure out why it was not working for you.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
If it works it's fine for me xD anyway im a bit worried about security now, could this be exploited by a virus for example?Or it's the same thing as having a password?
Offline
Unneeded because Systemd#Editing_provided_units of getty@tty1.service does not need /etc/conf.d/agetty.tty1
Even though Skunky sucessfully editted the service file it failed as you can not login to a password protected account with only a username.
Seventh and you have tried the service file you are advocating and you can log in to a password protected users account with only a username?
No sorry i was in an openrc session as i dislike systemd. My apologies for the confusion. Ill have to stick to strict archsystemd linux when answering vague posts in the future.
The OP has probably not created the below directory file as outlined on the wiki, https://wiki.archlinux.org/index.php/Ge … al_console
#/etc/systemd/system/serial-getty@ttyS0.service.d/autologin.conf
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin username -s %I 115200,38400,9600 vt102
Offline
If it works it's fine for me xD anyway im a bit worried about security now, could this be exploited by a virus for example?Or it's the same thing as having a password?
Having no password for your user is not wise, its leaving a door open.
Offline
So even if im the only one who uses the computer removing the password can be a problem?
Offline
It'd definitely be a problem if that user is in the sudoers file and/or the wheel group, as having no password then is effectively the same as letting any process run any command as root.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Well it is i suppose i need to set a password now
EDIT: WTF i just did it and no password asked at login....i will try on my other pc later
EDIT2: it didn't work on my other pc can we do something to see what's wrong in the pc that won't login?
EDIT3: I finally made it!! the problem was getty@ttyX.service not started which another wiki page (out of date and not available in english) told me to disable, i should pay more attention to those warnings!!Thanks everyone for the help
Last edited by Skunky (2018-06-20 00:52:08)
Offline
Pages: 1