[SunHELP] /etc files ownership changed

Dale Ghent daleg at elemental.org
Tue Sep 13 21:02:52 CDT 2005


On Sep 13, 2005, at 5:29 AM, Zakaria Mattar wrote:

> 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?

Yes.

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.

/dale



More information about the SunHELP mailing list