How to Login BackTrack Automatically

Discussion in 'Resources' started by Mr. Penguin, 20 Aug 2012.

  1. Mr. Penguin

    Mr. Penguin Administrator
    Staff Member Admin Moderator VIP

    Joined:
    18 May 2012
    Messages:
    3,096
    Likes Received:
    1,193
    Don't you hate it when you have to type root, toor, startx all the time when you want to use BackTrack? Solution:

    You will need to log into BackTrack and navigate to:
    Code:
    Select All
    ~/etc/rc.local
    and add this line to the code:
    Code:
    Select All
    su -c root startx
    Edit the file / save with your favourite text editor or within Terminal itself.

    This should work with Backtrack 5, R1, R2 and R3. If you have any issues post below.

    Then Reboot :)

    Alternatively there is another method:

    OR

    Install Rungetty
    Code:
    Select All
    apt-get install rungetty
    Now you want to configure the file
    Code:
    Select All
    nano /etc/init/tty1.conf
    Move to the last line and add this symbol: # " before the line "exec /sbin/getty -8 38400 tty1"

    Copy and paste the following below it:
    Code:
    Select All
    exec /sbin/rungetty tty1 --autologin root
    Press Ctrl+O and push Enter to save

    Code:
    Select All
    nano /root/.bash_profile
    and type:

    Code:
    Select All
    startx
    Press Ctrl+O and push Enter to save

    Then reboot and see how you fair
     
  2. Terran

    Terran Active Member

    Joined:
    22 Oct 2012
    Messages:
    1
    Likes Received:
    0
    Hi,

    Tried the first option in in a production enviro... no go.
    tried the 2nd suggestion in a VM... no go.

    Any help to get this going ia greatly appreciated.
     
  3. devilan05

    devilan05 Member

    Joined:
    1 Dec 2014
    Messages:
    5
    Likes Received:
    0
    Can't work. Hmm. Try another way.
     
Loading...
  • About Us

    We are a community mixed with professionals and beginners with an interest in wireless security, auditing and pentesting. Feel free to check out and upload resources.


    You can also find us on: Twitter and Facebook

  • Donate to Us

    Did you find our forums useful? Feel free to donate Bitcoin to us using the form below. Those who donate the equivlent of $10 USD or more will be upgraded to VIP membership. Don't have Bitcoin? Use your credit card to GO VIP here. Don't want to fork out some coin? There are other ways to GO VIP. Bitcoin: 1LMTGSoTyJWXuy2mQkHfgMzD7ez74x1Z8K