Find the answer to your Linux question:
Results 1 to 2 of 2
I think I've stupidly managed to lock myself out of the root account.... SSHd in as root, installed bash and then opened /etc/passwd to change default shell - instead of ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    4

    Help - locked out of root account


    I think I've stupidly managed to lock myself out of the root account....

    SSHd in as root, installed bash and then opened /etc/passwd to change default shell - instead of saying /opt/bin/bash I set it to /bin/bash

    Now I obv can't login as root to change it back- anyone got any suggestions? Could I create a link of some sort from /bin/bash to /opt/bin/bash?

    Thanks in advance.

    Ed Ludlow

  2. #2
    Just Joined!
    Join Date
    Jan 2007
    Posts
    4
    OK problem solved - in my confusion I still had another SSH window open, logged in as root....thank god!

Posting Permissions

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