LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2002, 12:48 AM   #1
iggymac
Member
 
Registered: Aug 2001
Posts: 77

Rep: Reputation: 15
changed hostname: now sudo and xhost gone goofy


Hello all,

On my single-user redhat 7.1 machine I decided to change my hostname directly in the /etc/sysconfig/network file from localhost.localdomain to whatever.whatnot.dingleberry (just an example). I left the localhost.localdomain entry in /etc/hosts alone.

All was fine except for two anomalies that I don't get:

The sudo command was suddenly not asking for a password when I would run it as an authorized user (still listed in the sudoers file). When I changed my hostname back to localhost.localdomain sudo began properly asking me for my password again.

So what would cause that?

Secondly, if I would su - to root and try to run something that requires X I would get an access denied error for the DISPLAY that would require me to run xhost + . I don't think all X apps were giving me this, but linuxconf was for sure. Changing back to localhost.localdomain did not fix this. So I have 2 questions:

What caused this?
How do you make changes to your xhost access list permanent so I can stop typing xhost + ?

Thanks.

Bret
 
Old 06-13-2002, 02:09 AM   #2
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
you changed hostname properly
you need to add entry to your /etc/hosts
su never asks for pass if you are root

--don't use linuxconf, (it causes more troubles, than does good)
 
Old 06-13-2002, 10:25 AM   #3
iggymac
Member
 
Registered: Aug 2001
Posts: 77

Original Poster
Rep: Reputation: 15
Would I need to add my new hostname to /etc/hosts if I already have it listed in my zone records in my DNS server?

Also, I was not root already when I used sudo or su -.

And I also don't usually use linuxconf because I agree it's a pain sometimes. I was just using it as an example of an X app that wouldn't launch from terminal.

Any more ideas anyone?

Thanks.

Bret
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Knoppix Changed Hostname deadlove75 Linux - Software 4 04-10-2006 12:15 PM
hostname changed - why? greg108 Fedora 3 12-31-2004 07:41 PM
hostname changed. was i hacked???????? Sridhar Guntur Linux - Networking 7 07-23-2004 11:34 AM
changed hostname now problems degraffenried13 Linux - General 2 02-21-2004 06:15 PM
Changed my hostname and broke sshd Itzac Linux - Networking 7 03-23-2003 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:45 PM.

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