Re: Need to ( re-chown /etc )
- From: Jon Radel <jon@xxxxxxxxx>
- Date: Tue, 30 Sep 2008 22:13:55 -0400
Mike Price wrote:
I needed to edit the /etc/pf.conf so I accidentally typed: chown -r /etc
Can someone please help me with a command to change /etc back to the way it
was?
Did Kevin Kinsey's suggestion not work? It would be helpful if you gave
some hint as to why you're asking this again.
However, you should realize that you destroy information when you change
all the ownership information to a uniform value. You need to:
1) Know what the value for each file was so you can set it back, or
2) Use your backups, or
3) Check what the standard files are set to in the distribution (as
Kevin suggested), or
4) Know that most, but not all, files in /etc are user root and group
wheel, use those values, and hope for the best.
In other words, there really isn't "a command" to fix the damage you've
done.
However, as I'm sure you realize by now, recursively destroying
information in or about system files tends to be a bad idea. As is, as
a general rule, using chown as a privileged user just so that you can
edit a file such as this as an unprivileged user.
--Jon Radel
jon@xxxxxxxxx
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
- References:
- Need to ( re-chown /etc )
- From: Mike Price
- Need to ( re-chown /etc )
- Prev by Date: Re: Need to ( re-chown /etc )
- Next by Date: RE: Optimal File System config for 2.5TB RAID5
- Previous by thread: Re: Need to ( re-chown /etc )
- Index(es):
Relevant Pages
|