Operating System - Linux
1753544 Members
5972 Online
108795 Solutions
New Discussion юеВ

Re: Red Hat Linux 5.3 new install

 
SOLVED
Go to solution
Scott McDade
Frequent Advisor

Red Hat Linux 5.3 new install

I just installed Red Hat Linux 5.3 and went through the entire install without any issues. I am now trying to set up networking and when I give the device a hostname via NEAT>DNS>HOSTNAME it accepts it but upon reboot it wonтАЩt allow me to log back in. I am using DHCP so there should not be any conflicts. I have only set up 1 user in addition to root and both accounts allow me to put in user and password, then they hang for about 10 seconds and come back to login screen.

Any ideas or files I can look at that would show me what could be happening?
Keep it Simple!~
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: Red Hat Linux 5.3 new install

Shalom,

Your hostname could be set by the DHCP server. There is a network variable called DHCP_HOSTNAME which you can set, but many DHCP server tie back to databases locking in names.

See:
/etc/resolv.conf
/etc/nsswitch.conf

Name resolution problems often cause this issue.

Also a simple /etc/hosts hack can fix this.

IP_address hostname

This assumes nsswitch.conf does files resolution before dns, which is a good practice.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Scott McDade
Frequent Advisor

Re: Red Hat Linux 5.3 new install

Hey Stephen, I like the /etc/host hack idea. I assume these are env varaibles and not hardcoded ipaddress and hostname?
Keep it Simple!~
Steven E. Protter
Exalted Contributor

Re: Red Hat Linux 5.3 new install

Shalom,

examples are helpful.

/etc/hosts

10.81.138.170 gitop2 gitop2.dana.com

If /etc/nsswtich.conf host resolution points to files before DNS, a hack here will work for you.

A lot of systems need a line in /etc/hosts to resolve their own hostname quickly, especially in an environment ruled by Unix unfriendly Microsoft Servers.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com