You are not logged in.

#1 2011-09-25 21:08:46

zaro
Member
Registered: 2011-09-25
Posts: 1

Recursive CHMOD 755 on /usr by Mistake...

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

#2 2011-09-26 13:59:24

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Recursive CHMOD 755 on /usr by Mistake...

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 smile.

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

Board footer

Powered by FluxBB