NIS yp problems - SUN

This is a discussion on NIS yp problems - SUN ; Hi i have a NIS master called mackenzie a couple of days ago its host name was renamed to "-s" (accidentally had a .login with set prompt="`/bin/hostname -s`:$USER> " the hostname -s did it). anyway I renamed it back but ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: NIS yp problems

  1. NIS yp problems

    Hi
    i have a NIS master called mackenzie a couple of days ago its host
    name was renamed to
    "-s" (accidentally had a .login with set prompt="`/bin/hostname
    -s`:$USER> " the hostname -s did it). anyway I renamed it back but the
    password db still thinks its called -s how do I get it to look at
    mackenzie again?

    mackenzie# ypwhich -m
    netgroup.byhost mackenzie
    hosts.byaddr mackenzie
    netid.byname mackenzie
    ethers.byaddr mackenzie
    pcnfs mackenzie
    image mackenzie
    auto.home mackenzie
    timezone.byname mackenzie
    netmasks.byaddr mackenzie
    passwd.byuid -s
    ethers.byname mackenzie
    amd.home mackenzie
    publickey.byname mackenzie
    aed.disk mackenzie
    mail.aliases mackenzie
    netgroup.byuser mackenzie
    passwd.byname -s
    bootparams mackenzie
    protocols.byname mackenzie
    protocols.bynumber mackenzie
    netgroup mackenzie
    rpc.bynumber mackenzie
    networks.byaddr mackenzie
    networks.byname mackenzie
    disabled mackenzie
    group.bygid mackenzie
    group.byname mackenzie
    hosts.byname mackenzie
    services.byname mackenzie
    mail.byaddr mackenzie
    ypservers mackenzie


  2. Re: NIS yp problems

    take a look at /var/yp/binding//ypservers
    You probably still have -s in it

    other way, delete passwd db and run ypmake to rebuild it

    cheers

    Marc La Senne
    Office Automation Unix
    Amadeus S.A.S.
    +33.(0)4.97.15.44.59

    merrittr wrote:
    > Hi
    > i have a NIS master called mackenzie a couple of days ago its host
    > name was renamed to
    > "-s" (accidentally had a .login with set prompt="`/bin/hostname
    > -s`:$USER> " the hostname -s did it). anyway I renamed it back but the
    > password db still thinks its called -s how do I get it to look at
    > mackenzie again?
    >
    > mackenzie# ypwhich -m
    > netgroup.byhost mackenzie
    > hosts.byaddr mackenzie
    > netid.byname mackenzie
    > ethers.byaddr mackenzie
    > pcnfs mackenzie
    > image mackenzie
    > auto.home mackenzie
    > timezone.byname mackenzie
    > netmasks.byaddr mackenzie
    > passwd.byuid -s
    > ethers.byname mackenzie
    > amd.home mackenzie
    > publickey.byname mackenzie
    > aed.disk mackenzie
    > mail.aliases mackenzie
    > netgroup.byuser mackenzie
    > passwd.byname -s
    > bootparams mackenzie
    > protocols.byname mackenzie
    > protocols.bynumber mackenzie
    > netgroup mackenzie
    > rpc.bynumber mackenzie
    > networks.byaddr mackenzie
    > networks.byname mackenzie
    > disabled mackenzie
    > group.bygid mackenzie
    > group.byname mackenzie
    > hosts.byname mackenzie
    > services.byname mackenzie
    > mail.byaddr mackenzie
    > ypservers mackenzie



  3. Re: NIS yp problems

    cd /var/yp
    make aliases

    fixed it


+ Reply to Thread