Re: Need to ( re-chown /etc )



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



Relevant Pages

  • Re: License and software to develop a new version of MultiValue/Pick Database Operating Environment
    ... You might want to first adjust the attitude (a real suggestion). ... Kevin, If I wanted to be abused in public, I'd go dance naked in the ... parts of the MultiValue systems that I thought I'd just be a tiny ...
    (comp.databases.pick)
  • Re: recording Macros
    ... You posted command button code that may work to filter ... further responses and suggestions, ... Thank you for your suggestion, I will try to be more clear with my ... Is snm type a number type field, ...
    (microsoft.public.access.gettingstarted)
  • Re: IniRead default value proposal
    ... and parm4 is populated, then send parm4". ... function slows down the parser for every command, ... please note that my suggestion does not ... I think the feature would be a useful thing ...
    (comp.os.msdos.4dos)
  • Re: Magic item cost
    ... crystal would suffice per any other ioun stone. ...  10,800 suggestion: add a command-word activated Silence effect (2nd ... level spell effect x min 3rd level cleric x 1800 command word ... into a Silence effect to eliminate the worry of his moving around, ...
    (rec.games.frp.dnd)
  • Re: HELP I CANNOT RUN ANY EXE FILES ON MY COMPUTER!!!
    ... but I have a suggestion for Pegasus. ... The directions could be better. ... Type this command and then hit the Enter key: ... :>> jumping around about OEM disk, reloading from a friends disk, cmd.exe ...
    (microsoft.public.windowsxp.general)