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.