OH NO i locked my self out of my admin account

Discussion in 'Server Security' started by zipster522, Apr 14, 2013.

  1. zipster522

    zipster522 New Member

    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    0
    Hi my name is zach and just recently while I was using my new computer i forgot my admin password and am stuck in another created account stuck with filters.:( it would be excellent if I could get a step by step process in how to get back into it!;)

    DevynCJohnson likes this.
  2. maruti.8085

    maruti.8085 New Member

    Messages:
    1
    Likes Received:
    1
    Trophy Points:
    1
    yes you can single user mode and changet the root password. and also try the grub using chroot mode and try to use hash password in there.
    DevynCJohnson likes this.
  3. MikeyD

    MikeyD Active Member

    Messages:
    224
    Likes Received:
    108
    Trophy Points:
    43
  4. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,203
    Likes Received:
    405
    Trophy Points:
    83
    Please say what distro you are using. It could be a simple as editing a grub kernel line or as difficult as using backtrack/kali to learn the new password.
  5. GrumpyOldMan

    GrumpyOldMan Active Member

    Messages:
    116
    Likes Received:
    41
    Trophy Points:
    28
    You can also boot via a live-boot CD, like sysresccd, then chroot into the hard disk. Now you're in as root, so you can change passwords all you want.
  6. Rodrigo

    Rodrigo New Member

    Messages:
    26
    Likes Received:
    10
    Trophy Points:
    3
    You can mount your root partition with a LiveCD and edit the file /etc/passwd and remove the password section.

    Before:
    Code:
    root:x:0:0:root:/root:/bin/bash
    
    After:
    Code:
    root::0:0:root:/root:/bin/bash
    
    
  7. Videodrome

    Videodrome Active Member

    Messages:
    176
    Likes Received:
    72
    Trophy Points:
    28
    I once locked myself out of an installed Knoppix with ViSudo. I was able to use the original Knoppix Live CD to access my file system and undo my mistake lol.
  8. JDG

    JDG New Member

    Messages:
    17
    Likes Received:
    2
    Trophy Points:
    3
    I've never tried it this way before, only modifying /etc/shadow.

Share This Page