I did the following mistake on a remote server :

# sudo chmod 700 /

Now no user but root can do anything. I can't even ssh as a normal user anymore, since I don't have permission to access bash.

My question is the following: in the event that I can't log in as root, is there a way I can directly ssh to my server with super-user rights?

  • You can add your user to sudoers. That should work..
    – ryekayo
    Sep 22, 2014 at 18:42
  • 1
    Oops I did not see your comment -- thanks, but unfortunately even though my account is among the sudoers, I cannot ssh regularly ("/bin/bash: Permission denied" is the error I obtain).
    – Sary
    Sep 22, 2014 at 19:29
  • Ahh ok, figured that would be worth trying out. But I think that drs answer is the only way to log in
    – ryekayo
    Sep 22, 2014 at 19:34

1 Answer 1


Unless it's been explicitly disabled, you can ssh using your root user:

ssh [email protected]
  • Thanks for your answer -- I'm investigating that now but, in the event that it's disabled, is there a way one can directly ssh as a regular user with super-user rights ?
    – Sary
    Sep 22, 2014 at 18:57
  • @user27834 No (for security reasons)
    – Uwe Plonus
    Sep 22, 2014 at 19:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .