Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2008 22:13:55 -0400
From:      Jon Radel <jon@radel.com>
To:        Mike Price <bipolor@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Need to ( re-chown /etc )
Message-ID:  <48E2DCE3.4070508@radel.com>
In-Reply-To: <a15f9fba0809301857i3f9db5a4y40208a6edb412796@mail.gmail.com>
References:  <a15f9fba0809301857i3f9db5a4y40208a6edb412796@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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@radel.com

[-- Attachment #2 --]
0	*H
010	+0	*H
	100\mtv0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
080324165921Z
090324165921Z0^10URadel10U*
Jon Thomas10UJon Thomas Radel10	*H
	
jon@radel.com0"0
	*H
0
t,Pp#
٬q_2=L-^m>z3ʟV![([ AoE}ϛ3/6?񥃮cWx(/)'$6sTl<*i'=uoxMbt
rdtnxud1R6T>zU0FZ,vN9NP{>qE`^P;	*Wg/jN*OVՠQMB(=:
*0(0U0
jon@radel.com0U00
	*H
h!oܨ[А!fN#[Z
b$3?x&$~Ħ9}`MX[It}/bXZajgxɥ' 2NrtWAr sFި'^@mDVw\)00\mtv0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
080324165921Z
090324165921Z0^10URadel10U*
Jon Thomas10UJon Thomas Radel10	*H
	
jon@radel.com0"0
	*H
0
t,Pp#
٬q_2=L-^m>z3ʟV![([ AoE}ϛ3/6?񥃮cWx(/)'$6sTl<*i'=uoxMbt
rdtnxud1R6T>zU0FZ,vN9NP{>qE`^P;	*Wg/jN*OVՠQMB(=:
*0(0U0
jon@radel.com0U00
	*H
h!oܨ[А!fN#[Z
b$3?x&$~Ħ9}`MX[It}/bXZajgxɥ' 2NrtWAr sFި'^@mDVw\)0?0
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
	*H
HP.
fgCL!6-6/P p<ab:~t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1d0`0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAmtv0	+0	*H
	1	*H
0	*H
	1
081001021355Z0#	*H
	1L+L 歝0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+71x0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAmtv0*H
	1xv0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAmtv0
	*H
:XC3;10bh&iv!t}n12u	xigbNv}~!mrbm.
[[>Wyhȍ#w?+A" \i$hK"xC~l"[-Ymf:>G*~B	Z5vFnPz_0RSBӍE΍zqor=1"]	O}:Iq@d)]62mp
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48E2DCE3.4070508>