Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My friend was trying to tighten up security on his ubuntu server and changed the permissions on bash. He logged out, and now the computer won't let him log back in.

The server is an off-site server (I believe it is running ubuntu 12.10), so we only have command-line access to it. We can't actually see what is happening on screen until it has booted because of remote stuff, so we can't just tell it to go to root mode when it is booting. He says that we still the ability to ssh into the machine. Right now when we try to login, it logs in, the immediately logs us back out.

Is there a way to log in directly as root, or tell ubuntu to run sh commands from the login page?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You should be able to do ssh -t user@host some_other_shell, where some_other_shell is something like sh, ksh, zsh, etc.

share|improve this answer
    
That appears to have worked. Thank you. –  Evan May 11 '13 at 18:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.