/etc/hosts getting overwritten after reboot?

mrab54

Member

Reaction score: 1
Messages: 21

Hello,

Can anybody tell me why my /etc/hosts file keeps getting re-written after a reboot? Any entries I put in there get wiped every boot and it's quite annoying. I'm using one of those pre-built FreeBSD 7.1 VMware images from VMware's "appliances" web site. Although convenient to get up and running quickly, I really have no idea about how everything is set up in the image. I've even tried changing permissions to read-only and the file still gets overwritten! Thanks.
 

DutchDaemon

Administrator
Staff member
Administrator
Moderator
Developer

Reaction score: 2,819
Messages: 11,308

I have never seen /etc/hosts being rewritten by anything, but you could try [cmd=]chflags schg /etc/hosts[/cmd].
 

mk

Well-Known Member

Reaction score: 20
Messages: 300

how about just use vanila freebsd install, not pre-build image from vmware.
 
Top