Results 1 to 17 of 17

Thread: Kali Linux Root Problem

  1. #1
    Join Date
    2016-Aug
    Posts
    6

    Kali Linux Root Problem

    So I have installed Kali Linux with Linux Deploy on a sdcard, the installation was sucssesful nothing went wrong, I got on Kali Linux with a VNC, I turn the LXTerminal and try getting root but it doesn't work, I tried every sudo command aswell as su with every possible password but it still doesn't work.

    Code:
    kali@localhost:~$ su
    Password:
    su: Authentication failure
    Code:
    kali@localhost:~$ sudo
    sudo: PERM_ROOT: setresuid(0, -1, -1): Permission denied

  2. #2
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    773
    So you created a non-root user, logged in ok, and are trying to escalate to root?

  3. #3
    Join Date
    2016-Aug
    Posts
    6
    I'm trying to get root access.
    Last edited by R4DeNvy; 2016-08-11 at 14:11.

  4. #4
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    773
    Hmm, is there some reason you don't want to work as root? Many of the tools in Kali won't run properly otherwise. I've never used/created another user in a Kali install.

  5. #5
    Join Date
    2016-Aug
    Posts
    6
    ... Did you even read my thread? I'm trying to get root but the commands aren't working it's saying Authentication failure for su command and for sudo it says I don't have permission..

  6. #6
    Join Date
    2016-Jul
    Posts
    9
    @R4DeNvy what happens when you type sudo -i

    the above command should just prompt you for your user's password to make the shell run as root, this is assuming your account is a member of the sudo group.

    to check if your user is a member of the sudo group type cat /etc/group |grep sudo

    the output of the above command should display all accounts part of that group, if yours isnt there then you need to add it.

  7. #7
    Join Date
    2016-Aug
    Posts
    6
    If I type sudo -i it says I don't have permission, it says it even if I do any sudo command.

    I will check my group.

  8. #8
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    773
    @R4DeNvy, I did read your thread. What confused me was that you aren't logging into Kali as root.

  9. #9
    Join Date
    2016-Aug
    Posts
    6
    @grid, there is no option to logging as root on Kali Linux with Linux Deploy, you need to get root from the terminal with commands called su & sudo but I don't have the permission or it's authentication failure.
    Last edited by R4DeNvy; 2016-08-12 at 19:40.

  10. #10
    Join Date
    2016-Jul
    Posts
    9
    i honestly havent tried linux deploy cus my phone isnt rooted, and i am assuming the installation wont even work if the phone isnt rooted.

    that said, can you try sudo su "i read that the default password is "changeme" without quotes

    if the above works, you can change the password for root with
    sudo passwd

  11. #11
    Join Date
    2016-Aug
    Posts
    6
    Not a single password for su works and if I even type sudo it already says I don't have permission.

  12. #12
    Join Date
    2016-Aug
    Posts
    2
    Have you tried sudo -u root with the passoword of toor?

  13. #13
    Join Date
    2017-Sep
    Posts
    2
    so , anybody know how make work this , no one password not work

  14. #14
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    928
    Quote Originally Posted by vitalinvent View Post
    so , anybody know how make work this , no one password not work
    What exactly are you facing?

  15. #15
    Join Date
    2017-Sep
    Posts
    2
    i downloaded Linux Deploy installing kali and got error when try install something or change user to root


  16. #16
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    928
    The password you set during installation might be different from the one you are entering.

  17. #17
    Join Date
    2017-May
    Posts
    1
    You might be able to edit the boot loader to present a shell. Press shift when booting, when you see the grub, press e to edit the add linux init=/bin/sh. Once you get the root shell, use the passed command and reboot. If it works don't forget to revert the grub. If it does not work, you can google "root shell" from grub and find the solution that way.

Similar Threads

  1. Problem copying files to root, also aircrack-ng related problem.
    By tortimer in forum NetHunter General Questions
    Replies: 4
    Last Post: 2017-01-02, 14:43
  2. Kali Linux as OS on non-root
    By Cyghost in forum General Archive
    Replies: 7
    Last Post: 2015-08-17, 14:52
  3. Replies: 0
    Last Post: 2015-07-22, 18:15

Posting Permissions

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