While trying to restrict home folders to sudo users (then give a user access to one folder) I accidentally executed this command:
sudo chmod go-rwx /*/
Which removed access rights to all folders for all users, except the root account. I can't do anything currently on non-root accounts (no cd, ls, nano etc). How can I change folder permissions back to default where users had access to /home/ and program directories?
Note: I haven't really tried anything yet as I don't want to break things further.