Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a remote ubuntu computer that I connect to via SSH. The remote computer has only one user. I accidentally changed the user's home folder permissions (to 555, I believe) and because of that I can no longer ssh in. Is there a way to fix the permissions remotely?

share|improve this question

migrated from stackoverflow.com Apr 25 '12 at 12:19

This question came from our site for professional and enthusiast programmers.

    
Do you normally login using a password or a private key? Do you connect from another Ubuntu computer, or a Mac, or a Windows PC (in which case, do you use Cynwin ssh, or Putty, or something else to connect?)? –  dave4420 Apr 25 '12 at 9:26

1 Answer 1

It's possible you may be able to run commands over ssh even though you cannot start a login shell over ssh.

This may work

ssh remotecomputer chmod 775 .
share|improve this answer
    
I get the same permission denied error trying to run this. –  user1354390 Apr 25 '12 at 15:48

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.