Results 1 to 5 of 5

Thread: Cannot open access to console, the root account is locked

  1. #1
    Join Date
    2020-May
    Posts
    1

    Cannot open access to console, the root account is locked

    Hello I'm installing kali on my raspberry pi but got the the error, "cannot open access to console, the root account is locked" during boot up. I've looked up what to do but requires me inside terminal but I cant access terminal because I'm only in bootup process any help on what to do please. It will tell me to hit enter to continue but it does nothing from there.

  2. #2
    Join Date
    2020-Oct
    Posts
    1
    Same problem I was having, but for a different issue after update. Update hung, and I forced rebooted it because process had rebooted computer and hung on the plain Kali blue boot screen with no options for boot.

    One thing that bothers me to no end is that many people will tell you what to do, but not explain why they?re telling you do it. When I give instruction, I explain why I?m advising you to do it, so bear with me.

    sulogin is single user login used for maintenance. IME, Kali, by default, does not provide for single user login for maintenance. This is probably related to Kali no longer defaulting to root (to protect the user). So you basically have to force single user login in order to be able to mount the file system and repair it with upgrades.

    Steps:

    1) Create / use the live USB you would normally use to install Kali
    2) Boot into Kali Live
    3) Force single user login, and so you won?t have to deal with typing sudo each time:
    $ sudo -s -H
    4) Find partition of your Kali install & note /dev/dev#:
    NOTE: this can also be located easily from your Grub boot screen options if you are able to pull that up there. In the example below, my Kali install was on /dev/sda7
    # fdisk -l
    5) Force Kali into single user mode:
    # sulogin ? e ?force
    NOTE: You will see the console change to kali:/# instead of the PWD (present working directory)
    6) Mount the broken install (my install is on /dev/sda7)
    # mount /dev/sda7 /mnt
    # mount --bind /dev /mnt/dev
    # mount --bind /proc /mnt/proc
    # mount --bind /sys /mnt/sys
    #chroot /mnt
    #apt update
    #apt upgrade
    7) If there are problems, you will be prompted to run dpkg, run it as instructed and allow to finish, if so, then
    8) Run upgrade again
    9) Reboot system, and boot to Kali install normally

  3. #3
    Join Date
    2020-Dec
    Posts
    3
    Hello,
    Pardon my ignorance but I don't understand what you mean by "Force single user login" and "Force Kali into single user mode" What part of the sequence of the tutorial is that?
    perhaps I'm using a totally different computer than yours regarding paragraph 6) on your tutorial (mount the broken install...and so forth)
    I'm using an old desktop Dell Optiplex GX620 HD 250 GB 2GB ram with a processor of 3.4Ghz

    Honestly, I've checked your tutorial which is the only one detailed about this issue but can not match the sequence with the official Kali installation tutorial.
    However, I see with your good attitude a light at the end of the tunnel.

    Thank you,
    Victor

  4. #4
    Join Date
    2021-Jan
    Posts
    1
    Quote Originally Posted by thejuice View Post
    Same problem I was having, but for a different issue after update. Update hung, and I forced rebooted it because process had rebooted computer and hung on the plain Kali blue boot screen with no options for boot.

    One thing that bothers me to no end is that many people will tell you what to do, but not explain why they?re telling you do it. When I give instruction, I explain why I?m advising you to do it, so bear with me.

    sulogin is single user login used for maintenance. IME, Kali, by default, does not provide for single user login for maintenance. This is probably related to Kali no longer defaulting to root (to protect the user). So you basically have to force single user login in order to be able to mount the file system and repair it with upgrades.

    Steps:

    1) Create / use the live USB you would normally use to install Kali
    2) Boot into Kali Live
    3) Force single user login, and so you won?t have to deal with typing sudo each time:
    $ sudo -s -H
    4) Find partition of your Kali install & note /dev/dev#:
    NOTE: this can also be located easily from your Grub boot screen options if you are able to pull that up there. In the example below, my Kali install was on /dev/sda7
    # fdisk -l
    5) Force Kali into single user mode:
    # sulogin ? e ?force
    NOTE: You will see the console change to kali:/# instead of the PWD (present working directory)
    6) Mount the broken install (my install is on /dev/sda7)
    # mount /dev/sda7 /mnt
    # mount --bind /dev /mnt/dev
    # mount --bind /proc /mnt/proc
    # mount --bind /sys /mnt/sys
    #chroot /mnt
    #apt update
    #apt upgrade
    7) If there are problems, you will be prompted to run dpkg, run it as instructed and allow to finish, if so, then
    8) Run upgrade again
    9) Reboot system, and boot to Kali install normally
    Thank you for this!

  5. #5
    Join Date
    2021-Apr
    Posts
    1
    I'm really new to Linux and Kali this reply you gave seems like Chinese in my eyes ... Could you break it down please

Similar Threads

  1. Cannot open access to console, root account is locked
    By blast3r in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-02-03, 21:52
  2. Applications not working in root account
    By jasonlok000 in forum General Archive
    Replies: 2
    Last Post: 2015-12-24, 13:47

Tags for this Thread

Posting Permissions

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