Friday, September 16, 2005

ownership for all the files pkgchk

> All,
> By mistake someone changed the ownership for all the files under /
> etc, now no
> one can access that system anymore.
> Is there anyway to recover /etc?


What you're looking for is the pkgchk command.

First, find out what packages reference /etc:

pkgchk -l -p /etc

Then take each package listed in that output and run:

pkgchk -af <pacckage1> <package2> ... and so on.



Post a Comment

<< Home