[SATLUG] Root problems

Henry Pugsley henry.pugsley at gmail.com
Sun Aug 8 15:45:45 CDT 2010


Another way to skin the proverbial cat:

rpm -qa | xargs -n1 -i rpm --setperms {}

If you had to mangle the package names for some reason then just stick sed
or perl in the middle.

If you have qmail on this system you will want to check those perms
manually.

-Henry

On Aug 7, 2010 4:40 PM, "Daniel Givens" <daniel at rugmonster.org> wrote:

On Aug 7, 2010, at 3:22 PM, Channing wrote:

> That's a good idea Daniel. Here is the code Peter...
...
Thanks!


> for pkg in $(rpm -qa --queryformat '%{NAME}\n')
> {
> rpm --setperms ${pkg}
> }
I just checked and in F12, you can give rpm the whole package name output by
`rpm -qa`. This worked for me.

for pkg in $( rpm -qa )
do
       echo $pkg
       rpm --setperms ${pkg}
done

Yay, progress!--

_______________________________________________
SATLUG mailing list
SATLUG at satlug.org
http://alamo.s...


More information about the SATLUG mailing list