Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Security hosts file, sudo errors on hosts change< Next Oldest | Next Newest >
Glacial Offline





Group: Members
Posts: 16
Joined: Feb. 2006
Posted: Mar. 12 2006,11:59 QUOTE

I'm running into a problem while trying to replace the existing hosts file:

Step Actions
1 vist a web site and download the security hosts file.
2 edit new hosts in beaver to remove the bad localhosts line from it.
Use the menu tools->conversions->DOS to UNIX to fix end of lines.
Then save it to flash drive sdb1.
3 run bash scrip file that does the following:

cat /etc/hosts /mnt/sdb1/hosts >./hosts
sudo rm /etc/hosts
sudo cp ./hosts /etc/hosts

This does actually work.  It does replace the hosts file but you get the following
error on the cp line:

sudo: unable to lookup box via gethostbyname()

And it takes forever to run!  Like 20 or 30 seconds!  After the new hosts file is
in place the error goes away.  I would like to automate this so it happens on boot. But I need to get rid of the copy error first (and the horrid time delay).  Ideas?


--------------
-=end of line=-
Back to top
Profile PM 
0 replies since Mar. 12 2006,11:59 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Security hosts file

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code