PDA

View Full Version : /etc/hosts file



WT
01-25-2003, 04:48 AM
How does one edit the /etc/hosts file? I've tried root passwd without success. I'm trying to connect to a Mandrake box but can only ping back and forth. Can I connect without editing the /etc/hosts file?

Thanks,
Wayne

sireasoning
01-25-2003, 12:40 PM
/etc/hosts is just a link to the cdrom. The best thing to do is to rename it as /etc/hosts.old and then create a new /etc/hosts and manually fill it. Don't forget localhost!

01-27-2003, 05:20 PM
You have to remove the sym-link, allright. If you want to have a start, you can use

rm /etc/hosts
cp /KNOPPIX/etc/hosts /etc/hosts
Then you are able to edit the hosts-file.