0

I am using debian os on pi3 and I completely lost the control of device. I messed up when I try to chmod on some folder. Here is what I did. I was already at: /var/www/html so i wanted to chmod the contents of html and executed that command:

sudo chmod o=rwx /.

After that I cant even change directory, I cant use sudo commands too. If there is a way to restore my pi it would be perfect. thanks for your answer in advance.

  • I believe that certain Linux distributions will allow you to read off the Pi's sd card which would allow you to recover some of your data – Mohammad Ali May 17 '16 at 14:05
0

Just reinstall, and restore any changes from your backups.

  • One could add: "you sure do have backups, don't you?" – Ghanima May 17 '16 at 8:23
  • @Ghanima i can relate – fcanozkan May 17 '16 at 12:06
0

You could copy the sd card with all the data on a computer, and restore and necessary files after reinstalling.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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