I recently broke the permissions in my /usr/include folder - probably whilst copying new include files into the directory. None of my compiles seemed to be working out as they should have been...
I did a little research and found out what they should be. I've written the commands to execute below for my own future reference and in the hope that someone else finds use in them!
sudo su -
cd /usr/include
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chown -R root:root /usr/include/*
No comments:
Post a Comment