Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

NIS Problem

  • 17-08-2005 2:27pm
    #1
    Closed Accounts Posts: 658 ✭✭✭


    Hi

    Im running a fresh install of Redhat Advanced Server 4.0 on my X86 machine. The machine is connected to the network and DNS is fully setup. It gets it's IP address statically through DHCP. Loading webpages and pinging works fine etc.

    I configured NIS using redhats own GUI based tool, using the details I pulled from the settings portal of the place I work in. The problem I have is that whenever ypbind is running, there is a massive delay in my network. Ill give you an example; it takes about two minutes for the ping command to actually start working, and then it works normally, sending request and recieving respopnse as normal. It also takes about two minutes at first to load a webpage when I enter a URL.

    When I disable ypbind, this problem dissappears and everything is back to normal. Can anyone help me to pinpoint the problem as there seems to be very little specific information online about it.

    thanks

    Bump

    Can this be moved to the unix forum maybe ?


Comments

  • Closed Accounts Posts: 658 ✭✭✭pontovic


    Should this be moved to another forum ?


  • Registered Users, Registered Users 2 Posts: 18,484 ✭✭✭✭Stephen


    Try the unix board: http://82.195.136.36/vbulletin/forumdisplay.php?f=32

    From my ultra limited linux experience, is this something to do with IPv6? I remember having problems with IPv6-enabled apps, such as firefox, trying to resolve all domain names to IPv6 addresses first, causing a long wait for time out before it would fall back to using IPv4.
    Recent versions of BIND support IPv6 but you can control whether or not to enable it in bind's config file. Don't even know what ypbind is :)


  • Closed Accounts Posts: 6,601 ✭✭✭Kali


    Definitely sounds like a name lookup issue .. check the lookup times using dig.
    Do you have nis specified in both hosts.conf and the hosts line in nsswitch.conf? (should be before dns/bind in both cases).


  • Closed Accounts Posts: 658 ✭✭✭pontovic


    thanks guys ill look at all that tomorrow


  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb


    I'd like to see your /etc/nsswitch.conf file as well.

    What's the output of
    ypwhich -m
    

    Does the delay happen for local hosts only, remote hosts only,
    or seemingly everything?


  • Advertisement
  • Closed Accounts Posts: 658 ✭✭✭pontovic


    Kali wrote:
    Definitely sounds like a name lookup issue .. check the lookup times using dig.
    Do you have nis specified in both hosts.conf and the hosts line in nsswitch.conf? (should be before dns/bind in both cases).

    Once again thanks for the replies. I thought Redhat should get this working out of the box but it doesn't, along with alot of other things I have had to sort out on it this week!

    Anyway, Kali, I have on my hosts line in the nsswitch.conf line

    hosts: files nis dns

    and in my /etc/host.conf file I have

    order hosts, bind

    Does that look right ?


  • Closed Accounts Posts: 658 ✭✭✭pontovic


    niallb wrote:
    I'd like to see your /etc/nsswitch.conf file as well.

    What's the output of
    ypwhich -m
    

    Does the delay happen for local hosts only, remote hosts only,
    or seemingly everything?

    It happens when I ping remote hosts. If I ping localhost, the pinging operation is perfectly normal. I will try the suggestions yourself and Kali have made.

    I have one more problem I forgot to mention. When I try to login using an account I created on install, I can't login. This accounts home directory has been deleted or moved somewhere, either way it has completely disappeared. I dont even have write access to the home directory when I am logged in as root. Very strange.

    Ill keep you all posted


  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb


    localhost is in your /etc/hosts file - try adding a few other hosts,
    and see do you get immediate response from them too.

    If your login has disappeared, probably your system is now
    only accepting NIS logins.

    Your home directory may only appear to be gone, but
    is hidden by an nfs mount on /home.
    Try to telinit 1 if you need to get some files back.
    An autofs from a running domain should set that up correctly, and it might appear like that.

    The fact that you don't have root write access is a giveaway.
    You're not root on that filesystem if it's a network one.

    Your nsswitch.conf must be mixed up.
    For your local acount to work,
    files should be before nis, and there should be no NOTFOUND action on the rest of the 'passwd' line.

    NiallB


    What does 'mount' say?
    The outputs of 'domainname' and 'ypwhich' would also be useful.


  • Closed Accounts Posts: 658 ✭✭✭pontovic


    Hi

    I managed to get the problem fixed. It turns out it was some propietary Redhat security setting that I had to change to add my network card ( eth0 ) as a 'trusted device'. I never saw that mentioned once anywhere that it might be a cause of the problem.

    Thanks for all your help.


Advertisement