You are not logged in.

#1 2008-08-10 15:56:32

Kardell
Member
From: London a new Babylon
Registered: 2007-02-20
Posts: 225

File & dir permissions checker

Is there any way to check at one go correctness of permissions for files and directories in root directory and subdirectories?
At least permissions of these more critical from security point of view.
For instance in case of some faulty routine chmod done on / yikes


"Those who don't know history are doomed to repeat it." Edmund Burke

Offline

#2 2008-08-11 08:19:28

new2arch
Member
Registered: 2008-02-25
Posts: 235

Re: File & dir permissions checker

Not sure if there any program that will autocheck the permissions' validity - you probably have to do it manually - http://www.faqs.org/docs/securing/chap5sec52.html
Some stuff are vital, you don't wanna disable the S*ID on xorg for example.

Offline

#3 2008-08-11 21:06:45

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: File & dir permissions checker

If you keep your pacman cache, reinstalling all your installed packages may show you some warnings that permissions on some directories are not the same as in the package, and the file permissions are replaced by those in the packages. But be aware that the naive way of doing that won't preserve the 'installed as dependency' status.

Offline

#4 2008-08-11 21:44:12

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: File & dir permissions checker

vogt wrote:

If you keep your pacman cache, reinstalling all your installed packages may show you some warnings that permissions on some directories are not the same as in the package, and the file permissions are replaced by those in the packages. But be aware that the naive way of doing that won't preserve the 'installed as dependency' status.

Actually, reinstalling a package should preserve that status. It won't preserve it only if you remove it with -R and install it again with -S.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB