You are not logged in.
Hello!
I've mistakingly chmoded /usr to 755 recursively. Trying to fix things, I've reinstalled all the packages on the system. Should this be enough to get the old permissions back? There are only packages from the repository and I don't have anything installed in /usr/local.
Thanks in advance for the help!
Offline
What you're asking is if all files in /usr belong to a package, I guess.
sudo find /usr -type f | while read p; do pacman -Qo $p || echo $p >>/tmp/nopackage; done
should return all files that don't belong to a package in /tmp/nopackage. It will take a long time though .
Edit: because "pacman -Qo" never finds a package for directories, you'll have to find another way to check if directories have the correct permissions. I would start by searching for all directories with 755 permissions.
Last edited by stqn (2011-09-26 14:49:12)
Offline