Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] They've changed Apache again.
- Date: Thu, 14 Oct 2010 21:17:49 +0900
- From: Kalin KOZHUHAROV <me.kalin@example.com>
- Subject: Re: [tlug] They've changed Apache again.
- References: <4CB6DC9F.3060006@example.com> <AANLkTin0c6L38=4Bcw78awemvZuw2byBk-cbB9MP-UDJ@example.com>
> On Thu, Oct 14, 2010 at 19:34, Dave M G <dave@example.com> wrote: > > Then later, my local web sites weren't working again, and it looks like > my /etc/hosts got wiped out again. Maybe after a boot. > > So it looks like when Apache starts up, it generates /etc/hosts, or > something, and I need to put my list of domains in some other file... or > something. > We all hate config files being overwritten! One way to stop this insanity "the brutal way" is to use `chattr +i /etc/hosts`, assuming your /etc is in ext{2,3,4} filesystem. Actually Wikipedia seems to have pretty to the point article: http://en.wikipedia.org/wiki/Chattr I have done this with files in /etc/ppp/ and /etc/udev/rules.d/70-persistent-net.rules some time ago. If you definitely want to find who's messing with the file use sys-process/audit [1,2]: [1] http://people.redhat.com/sgrubb/audit/ [2] http://www.cyberciti.biz/tips/linux-audit-files-to-see-who-made-changes-to-a-file.html And report back who was it ;-) Cheers, Kalin.
- Follow-Ups:
- Re: [tlug] They've changed Apache again.
- From: Scott Robbins
- References:
- [tlug] They've changed Apache again.
- From: Dave M G
- Re: [tlug] They've changed Apache again.
- From: Romeo Theriault
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] They've changed Apache again.
- Next by Date: Re: [tlug] They've changed Apache again.
- Previous by thread: Re: [tlug] They've changed Apache again.
- Next by thread: Re: [tlug] They've changed Apache again.
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links