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.

1
  • 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 Commented May 17, 2016 at 14:05

2 Answers 2

0

Just reinstall, and restore any changes from your backups.

2
  • One could add: "you sure do have backups, don't you?"
    – Ghanima
    Commented May 17, 2016 at 8:23
  • @Ghanima i can relate
    – fcanozkan
    Commented May 17, 2016 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 and acknowledge you have read our privacy policy.

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