Results 1 to 9 of 9

Thread: Auto root login - how to?

  1. #1
    Join Date
    2020-Jan
    Posts
    14

    Auto root login - how to?

    Hi Forum I am trying to figure out how to auto login with root on my kali install.

    I have tried this:

    gedit /etc/gdm3/daemon.conf

    [daemon]

    # Enabling automatic login
    AutomaticLoginEnable = true
    AutomaticLogin = root

    But it doesn't auto login. I didn't think it would anyway as I havent told it what password to use anywhere.

    Can someone advise me what I am missing please?

  2. #2
    Join Date
    2019-May
    Posts
    1
    After "researching" for half a day here is how to auto login in 2020.1 version

    nano/etc/lightdm/lightdm.conf # and add these lines in [Seat:*] section

    autologin-user=root
    autologin-user-timeout=o

    nano/etc/pam.d/lightdm-autologin #Comment out below line
    #authrequired pam_succeed_if.so user != root quiet_success
    Last edited by CodeX-; 2020-02-19 at 12:15. Reason: Added details

  3. #3
    Join Date
    2020-Mar
    Posts
    9
    How to login as root? I'm not able to login as root on my machine as there was not any option to create an account as root instead i had to create an account with my name during the installation. Please help me. It's very frustrating to use sudo again & again and then enter the passwd evertime! See image what i'm talking about!Screenshot 2020-03-21 02:46:19.jpg

  4. #4
    Join Date
    2020-Apr
    Location
    Barcelona
    Posts
    5
    Quote Originally Posted by CodeX- View Post
    After "researching" for half a day here is how to auto login in 2020.1 version

    nano/etc/lightdm/lightdm.conf # and add these lines in [Seat:*] section

    autologin-user=root
    autologin-user-timeout=o

    nano/etc/pam.d/lightdm-autologin #Comment out below line
    #authrequired pam_succeed_if.so user != root quiet_success
    Thanks a lot, you saved my day!!!

  5. #5
    Join Date
    2020-Apr
    Location
    Barcelona
    Posts
    5
    Quote Originally Posted by Hash30 View Post
    How to login as root? I'm not able to login as root on my machine as there was not any option to create an account as root instead i had to create an account with my name during the installation. Please help me. It's very frustrating to use sudo again & again and then enter the passwd evertime! See image what i'm talking about!Screenshot 2020-03-21 02:46:19.jpg
    I get your point, here 2 options:
    1) Activate root user (not recommended if you are going to use it day by day):

    Issue command ?sudo su?
    <Enter the password for kali user account>
    Issue command ?passwd root?
    <Enter new password and retype that password>
    At this point you can log-off and re log-in or you can just switch the user
    and log in as root.

    2) Give your user privileges to avoid enter the passwrd every time (strongly recommended, the option I use):

    sudo su
    pass for kali
    dpkg-reconfigure kali-grant-root

    This way you only have to write "sudo su" and won't ask you for passwrd.

    I hope this helps.

  6. #6
    Join Date
    2020-Apr
    Location
    Barcelona
    Posts
    5
    Quote Originally Posted by CodeX- View Post
    After "researching" for half a day here is how to auto login in 2020.1 version

    nano/etc/lightdm/lightdm.conf # and add these lines in [Seat:*] section

    autologin-user=root
    autologin-user-timeout=o

    nano/etc/pam.d/lightdm-autologin #Comment out below line
    #authrequired pam_succeed_if.so user != root quiet_success
    Thanks! You saved my day with this

  7. #7
    root@kali:~# gedit/etc/
    bash: gedit/etc/: No such file or directory
    root@kali:~# gedit/etc/gdm3/daemon.conf
    bash: gedit/etc/gdm3/daemon.conf: No such file or directory
    root@kali:~# gedit /etc/gdm3/daemon.conf
    bash: gedit: command not found
    root@kali:~# nano/etc/lightdm/lightdm.conf
    bash: nano/etc/lightdm/lightdm.conf: No such file or directory
    root@kali:~# gedit /etc/gdm3/daemon.conf
    bash: gedit: command not found
    root@kali:~#
    root@kali:~# [daemon]
    bash: [daemon]: command not found
    root@kali:~# # Enabling automatic login
    root@kali:~# AutomaticLoginEnable = true
    bash: AutomaticLoginEnable: command not found
    root@kali:~# AutomaticLogin = root
    bash: AutomaticLogin: command not found
    root@kali:~# AutomaticLogin = root
    bash: AutomaticLogin: command not found
    root@kali:~# gedit usr/etc
    bash: gedit: command not found
    root@kali:~# gedit usr/etc/
    bash: gedit: command not found
    root@kali:~# gedit/ usr/etc/
    bash: gedit/: No such file or directory
    root@kali:~# gedit
    bash: gedit: command not found
    root@kali:~# nano
    root@kali:~# nano/etc/lightdm/lightdm.conf # and add these lines in [Seat:*] section
    bash: nano/etc/lightdm/lightdm.conf: No such file or directory
    root@kali:~# nano
    root@kali:~# nano/etc/pam.d/lightdm-autologin
    bash: nano/etc/pam.d/lightdm-autologin: No such file or directory
    root@kali:~# ^C
    root@kali:~#


    ------i have tried, gedit, leafpad, etc
    i cant still find that daemon.conf T_T

  8. #8
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Quote Originally Posted by latentlust214 View Post
    root@kali:~#gedit/etc/gdm3/daemon.conf
    bash: gedit/etc/gdm3/daemon.conf: No such file or directory
    You are missing a space between "gedit" and "/etc/..."


    Quote Originally Posted by latentlust214 View Post
    AutomaticLoginEnable = true
    bash: AutomaticLoginEnable: command not found
    I suppose you accidently copied and pasted something into your terminal window?



    Quote Originally Posted by latentlust214 View Post
    root@kali:~# nano/etc/pam.d/lightdm-autologin
    bash: nano/etc/pam.d/lightdm-autologin: No such file or directory
    Missing space again

    Linux can be frustrating at times when you cut and paste random strings in a command line. The error messages aren't much of a help then.
    I recommend to:

    1. Follow this installation guide to install Kali Linux
    2. Complete this free "Kali Linux Revealed Online Course"

    That will make life so much easier for you and might even open doors to amazing careers.

    Once you are done with those, you might even be keen on doing the
    https://www.offensive-security.com/pwk-oscp/

  9. #9
    Join Date
    2020-Nov
    Posts
    1

    My lightdm-autologin file looks different

    Quote Originally Posted by CodeX- View Post
    After "researching" for half a day here is how to auto login in 2020.1 version

    nano/etc/lightdm/lightdm.conf # and add these lines in [Seat:*] section

    autologin-user=root
    autologin-user-timeout=o

    nano/etc/pam.d/lightdm-autologin #Comment out below line
    #authrequired pam_succeed_if.so user != root quiet_success
    I don't have the line referenced above in my lightdm-autologin (see screen shot). I only have auth required pam_permit.so. I tried commenting that but it didn't work. Any ideas?

    Screen Shot 2020-11-05 at 10.52.47 AM.jpg

Similar Threads

  1. Auto Login as Root no longer possible Kali 2020.4 Gnome
    By k4rl.L337 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-11-22, 23:10

Posting Permissions

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