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
|