LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-22-2002, 07:02 PM   #1
frankencat
LQ Newbie
 
Registered: Sep 2002
Posts: 7

Rep: Reputation: 0
Hosts in Red Hat 7.3


Hi All,

I set up a hosts file on my Linux box for some machines on my local network via /etc/hosts but I found something strange that I thought someone with more experience could help me with.

First, it seems like there are two places where you can configure local hosts names - 1) in the /etc/hosts file and 2) through the Control Panel applet under Network Configuration (KDE). The problem is that the two don't show the same configuration and the one that appears under the Network Config applet seems to override the file. I would just change it there but the changes don't stick (yes I am logged in as root) and the settings and addresses that are in the applet are from an old configuration and are no longer valid.

Any help is appreciated. Thanks.
Frank
 
Old 09-22-2002, 07:10 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
Never trust the GUI interface. You should just edit the file manually and not use the GUI interface to try and edit. One reason why linuxconf isn't used or installed anymore, a GUI interface that was buggy and unstable.
 
Old 09-24-2002, 08:27 AM   #3
frankencat
LQ Newbie
 
Registered: Sep 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Like I said, I AM editing the file manually but the entries in the GUI are causing problems and I can't seem to make them go away. Anybody?
 
Old 09-24-2002, 11:10 AM   #4
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
this may not be a good idea:

chattr -V +i /etc/hosts

This will make the file /etc/hosts immutable (not editable). If you need to change something, change the attrib:

chattr -V -i /etc/hosts
u need to be root to make these changes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9 Thetargos Red Hat 431 04-13-2007 05:19 AM
Red Hat 9 GUI Virtual Hosts setup yellowjelly Red Hat 2 12-21-2004 06:29 PM
Upgrading Red Hat 9 to Red Hat Enterprise Server 3 AS louisb Linux - Software 7 02-23-2004 10:25 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 06:33 PM
Red Hat 7.2... & a modem with Red Hat 7.1 driver support rahduku Linux - Distributions 1 02-14-2002 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration