Results 1 to 8 of 8

Thread: newb password problem

  1. #1
    Just burned his ISO
    Join Date
    Jun 2008
    Posts
    2

    Default newb password problem

    Hello All,

    Would like to thank all those who have put into making backtrack what it is. I am fairly new to linux and have installed backtrack2 in a VM on workstation 6. I recently logged into BT and changed the default root password. Today after trying to login I receive "login incorrect".

    I am certain I know what I changed the password to and my question is: Is there a way to change the root password in BT without being logged in? Is there a key that I need to hold on boot to edit the kernel or something similar?

    My second question is: Is there something you need to do after changing the root password if you're logged into BT and in the GUI? It seems I've changed passwords in linux before and after a reboot it never accepts the new password.

    Third question: How do you add user accounts in BT? As operating under root is not a smart idea, I need to setup a least-access account for myself.

    Thanks everyone for any help and also if anyone has any links handy that cover the basics of BT (other than the wiki) I would glady read them, Thanks!

  2. #2
    Just burned his ISO
    Join Date
    Jun 2008
    Posts
    2

    Default

    I have fixed myself, feel free to critique my steps:

    1.) Rebooted with BT live cd
    2.) Logged into Live cd with default root/toor
    3.) mkdir /tmp2
    4.) mount -t ext3 /dev/sda1 /tmp2
    5.) cd /tmp2, cd /etc
    6.) cp ./shadow ./shadow.bak
    7.) sudo nano shadow (maybe the sudo is superflous?)
    8.) erased root password hash, ctrl+o to save, enter for default filename "shadow"
    9.) rebooted without cd room
    10.) logged into bt with "root" no password.

    I guess I could've dumped the hash and ran john on it? I guess even a blind squirrel finds a nut every now and again.

  3. #3
    Good friend of the forums
    Join Date
    Jan 2010
    Location
    outside chicago, il
    Posts
    442

    Default

    Quote Originally Posted by dfnkt View Post
    Hello All,
    I am certain I know what I changed the password to and my question is: Is there a way to change the root password in BT without being logged in? Is there a key that I need to hold on boot to edit the kernel or something similar?
    Boot into single user mode. Basically add a s to the end of the lilo entry. I use grub so I don't know the exact series of steps off hand. Do a google search of single user mode lilo and it should help you. When at the # prompt type in passwd and put in a new password.

    Quote Originally Posted by dfnkt View Post
    My second question is: Is there something you need to do after changing the root password if you're logged into BT and in the GUI? It seems I've changed passwords in linux before and after a reboot it never accepts the new password.
    I never had that problem. All you do is use passwd and put in a new password.

    Quote Originally Posted by dfnkt View Post
    Third question: How do you add user accounts in BT? As operating under root is not a smart idea, I need to setup a least-access account for myself.
    at the # prompt type in useradd username
    then do a passwd username and put in a password
    I like the bleeding edge, but I don't like blood loss

  4. #4
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    One must also bear in mind that when adding user accounts to backtrack that they will not be able to use most of the tools provided with out su as these need root level access.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  5. #5
    Just burned his ISO fatou's Avatar
    Join Date
    Jun 2008
    Posts
    3

    Default

    Hrm, just had the same situation.

    It seems the problem was that I was using a custom keyboard layout when setting the passwd. The login shell still uses the 'us' one by default, so it got the password wrong since it contained characters.

    The solution: check how to spell your password under 'us' :P

  6. #6
    Just burned his ISO borntobehacker's Avatar
    Join Date
    Jul 2008
    Posts
    11

    Default

    its happen to me in my BT2.. i change the root password via KDE ( after login ) and crash...

    after that i reboot and login with username : "root" & password : "toor" the result: can't login...

    But successfully login with username : "root" & a blank password... :-)

    search this forum and found how to change the root password with "passwd" hahahaha not from the KDE :-P

  7. #7
    Just burned his ISO V0IDANC3's Avatar
    Join Date
    Jul 2008
    Posts
    4

    Default

    Just wondering is it possible to copy the shadow file of the Linux partition to a windows disk edit it by assigning a new MD5 hash and overwriting the original. In theory i believe that should work.

    I think next time you install backtrack it might be a good idea to create a wheel account as well as a backup in case you changed the root password

  8. #8
    My life is this forum thorin's Avatar
    Join Date
    Jan 2010
    Posts
    2,629

    Default

    You can just boot with the CD and replace the passwd and shadow files on your drive with those on the CD, then you'll be back to root/toor
    I'm a compulsive post editor, you might wanna wait until my post has been online for 5-10 mins before quoting it as it will likely change.

    I know I seem harsh in some of my replies. SORRY! But if you're doing something illegal or posting something that seems to be obvious BS I'm going to call you on it.

Posting Permissions

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