guys!
This is my first post here and, unfortunately, and it's being made in very ugly circumstances! I'm running Debian Jessie x64 and an hour ago I installed some fonts for figlet into the /usr/share/figlet directory. I couldn't use them because I was unzipping them with sudo and they didn't have the proper permissions. Without giving it much thought I ran sudo chmod 644 .* Now nothing works(the browser, even Terminator can't find its icons, etc). I read a few minutes ago that the sudo working directory is the root's home and now I'm frankly panicking!
I have two questions: what exactly did I do(did I change all the permissions on everything on my system to 644?) and how do I revert it barring a full backup restore?
I ran two searches looking for files and directories that were modified in the last hour, but that wasn't very productive. I googled for answers, but couldn't find an answer pertaining to the exact command that I ran, hence I'm posting a dedicated question-I want to know exactly what happened.
I'm very curious about what I did because the newly-unpacked figlet fonts themselves were left with their permissions unchanged!
Thank you very much in advance!
sudo
doesn't change the directory – Wissam Roujoulah Dec 6 '16 at 7:33chmod 755 /usr/share/*
wouldn't restore the permissions on/usr/share
itself), so you can't reward him directly. – Stephen Kitt Dec 6 '16 at 8:11