Long story short, while learning bash scripting etc, I erroneously ran chmod -R 770 /bin
(please don't ask why, this is already quite embarrassing as is).
The issue that made me realize the horrible mistake was a denied permission running /bin/bash
when logging in as user (resulting in a closed SSH connection), and after trying many other solutions found googling, I checked .bash_history
to find out the comic mistake.
Anyways, is there any way at all to get permissions back to defaults for folder and files? (other than reinstalling the os)
I have a backup of the whole SD (I'm on a headless RasPi running Minibian) not older than 3 days, but I'm not quite sure rolling back the previous version would actually change any permission. Are these details stored in the folder itself, or in some sort of a registry?
Also. Why is it that, despite being the permissions rwx on the user as well as the root, the scripts aren't executed?