Can't login, taken to cli login screen which demands login and password
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2019
    Location
    Sweden
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't login, taken to cli login screen which demands login and password

    I restarted my computer, for some reason I had to enter my password, and when it started again it wanted a login and password for the computer which I don't know.

    Now I can't login and even my tries to install ubuntu has failed. What do I do?

  2. #2
    Join Date
    May 2019
    Location
    Indonesia
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't login, taken to cli login screen which demands login and password

    Try login using your username and password.
    tty1 supposed to be used by graphical desktop, it is strange that it start with CLI.

  3. #3
    Join Date
    Jun 2019
    Location
    Sweden
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't login, taken to cli login screen which demands login and password

    Quote Originally Posted by arisgamers
    Try login using your username and password.
    That's the problem: I normally only have to enter a password. I've tried every combination of login and password I could think of, but nothing works.

    To provide more information: I had problems with bluetooth audio and accidentally uninstalled pulseaudio; when I reinstalled it it didn't open and I tried to restart my computer, which led to this issue.

  4. #4
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    1,109
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't login, taken to cli login screen which demands login and password

    You can't fix anything until you can login so tackle that as a first step. As you don't know your username, try login with the username "root" and your usual password(s). If that doesn't work you'll need a live usb or similar to boot to so you can change the password: https://fedoraproject.org/wiki/How_t..._root_password

  5. #5
    Join Date
    Jun 2019
    Location
    Sweden
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't login, taken to cli login screen which demands login and password

    edit: the actual problem seemed to be that I uninstalled GNOME or some other part of the GUI.

    So I fixed it. First I reset my password like this:
    https://fedoraproject.org/wiki/How_t..._root_password

    Then I logged in with the username "root" and my new password. I then reinstalled the graphical interface with:
    yum groupinstall "Fedora Workstation"

    I also enabled gdm -- the GUI login screen with:
    systemctl enable gdm

    You can then start the GUI with "startx" but you will be logged in as root. Just restart your computer and you should be taken to the normal login screen.

    https://unix.stackexchange.com/quest...ng-through-tty

    This didn't work for me:
    https://docs.fedoraproject.org/en-US...gui-login.html
    Last edited by deze1998; 18th July 2019 at 01:38 PM.

  6. #6
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    1,109
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't login, taken to cli login screen which demands login and password

    Quote Originally Posted by deze1998
    I also enabled gdm -- the GUI login screen with:
    systemctl enable gdm

    You can then start the GUI with "startx" but you will be logged in as root. Just restart your computer and you should be taken to the normal login screen.
    If you'd added the --now flag to the enable ("systemctl enable --now gdm") or followed it with a start ("systemctl start gdm") then you should have been taken to the login screen without requiring a reboot.

  7. #7
    Join Date
    Nov 2004
    Location
    MT USA
    Posts
    1,059
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't login, taken to cli login screen which demands login and password

    While you are logged in as root, you could always see the user name by doing command: > ls /home (the easiest) or cat /etc/group or... and while root you can always change the password of that user with the passwd command if you forgot that.

    I can't wrap my head around how one can't remember their username . Sorry, I just can't . I've been using the same username for all my systems since the 1980s. Passwords change, but not the username (at home that is). Plus if you are using a GUI, you see it every day above where you enter the password .

  8. #8
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    7,665
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't login, taken to cli login screen which demands login and password

    getent passwd | grep bash$

    is helpful, "getent passwd" shows all the /etc/password entries the grep filters that to only show the lines ending with "bash" which would tend to be real users and not system accounts (which usually use "nologin")

Similar Threads

  1. F26, SDDM: login fails, returns to login screen
    By lhartmann in forum Using Fedora
    Replies: 3
    Last Post: 13th September 2017, 06:09 AM
  2. [SOLVED]
    Passing login password to script as part of login process - possible?
    By hakonrk in forum Security and Privacy
    Replies: 6
    Last Post: 14th November 2011, 05:34 PM
  3. login window "can i change my login screen in fedora 10
    By oshan1991 in forum Using Fedora
    Replies: 15
    Last Post: 31st October 2009, 12:11 PM
  4. No root login allowed at login screen - Fedora 10
    By mitchellray in forum Using Fedora
    Replies: 2
    Last Post: 2nd April 2009, 02:13 AM
  5. after upgrade to F8 only X-login, but failing to login, returns to login screen
    By angro in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 26th November 2007, 09:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •