messed up permissions

I’m an idiot !!!
I was trying to edit some files in /usr . so I did “chown -R username /usr” as root . after editing, I did “chown -R root /usr” !!! it made me unable to open Yast and VirtualBox and many other features and applications . is there anyway to fix this ? I think some files in /usr was not owned by root, which I accidentally made them
I don’t want to re-install my linux :frowning:

Ouch AFAIK the only practical way is to reinstall. You can keep your personal settings and data by NOT formating the home partition.

:’(

Not true but I can’t remember the exact how but this is going in the right direction.

How to: Linux reset the permissions of the installed rpm packages with –setperms option

What I think you’ll need to do is do a rpm -qf for loop collect the package name then continue with the set permissions(Or reset all might be an option).

Cool did not know that command. RPM is always surprising me.

lol!

f0K5 wrote:
> I’m an idiot !!!

the easiest and most simple way to edit files owned by root is to (for
example) launch KWrite with superuser powers (and LEAVE the file
permissions alone!)

that is really simple to do:


kdesu kwrite

where did you learn to change file owner so you could edit as a
regular user??? go back there and tell them to jump off a cliff…


DenverD (Linux Counter 282315)
CAVEAT: http://is.gd/bpoMD
posted via NNTP w/TBird 2.0.0.23 | KDE 3.5.7 | openSUSE 10.3
2.6.22.19-0.4-default SMP i686
AMD Athlon 1 GB RAM | GeForce FX 5500 | ASRock K8Upgrade-760GX |
CMedia 9761 AC’97 Audio