I'm working with Linux (Fedora) without a GUI (I've disabled it). In the system, there is one user (tarik). I would like to log in automatically without typing the username and password. I have already deleted the password using the command:

passwd -d tarik

However, I don't know how to automatically log in to the user without typing the username.


  • You always have more users in a linux system. cat /etc/passwd gives you an idea.
    – stoney
    Commented Oct 5, 2022 at 14:09

1 Answer 1


Under Fedora, I'll presume you use systemd as init system and that the console you want to log from is a virtual console (tty[N]), that is to say not a serial console. Additionally assuming that agetty is running at startup. :

What you need is to override the default parameters given to agetty. You will need to define some service editing /etc/systemd/system/[email protected]/autologin.conf for example and add the following lines :

ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin tarik %I $TERM
  • you can see login sceen link Commented Oct 5, 2022 at 14:48
  • @TarikAlkanan : Sorry but I just get an http 404 when clicking on your link.
    – MC68020
    Commented Oct 5, 2022 at 15:13
  • Oo,Sorry ,there is it image Commented Oct 5, 2022 at 18:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .