NIS on RedHat

NIS on RedHat

Post by Art Werschu » Wed, 04 Dec 1996 04:00:00



Hi.

We have installed the RedHat 4.0 from CDROM, but cannot find NIS
clients such as ypcat.  NIS client services are not working.
We have followed the directions in section 5.13 of the RedHat Linux
User's Guide.  Here are the relevant files:

/etc/nsswitch.conf:

passwd:     nisplus
group:      nisplus
hosts:      dns
networks:   nisplus
protocols:  nisplus
rpc:        nisplus
ethers:     nisplus
netmasks:   nisplus
bootparams: nisplus
publickey:  nisplus
netgroup:   nisplus
automount:  nisplus
aliases:    nisplus
services:   nisplus
sendmailvars:   nisplus

(We also tried using "nis" instead of "nisplus".)

/etc/yp.conf:

domain whatever
ypserver whatever

With nsswitch.conf in place, /etc/passwd and /etc/hosts files were
ignored, indicating that the NIS system was trying and failing to get
the info from the NIS server.  

Basically, we would like to get info (e.g., user info) from the usual
/etc files if it exists, and if said info isn't available through the
/etc files, we then would go to NIS.

So, my questions are

(1) How can I get NIS to work in this way (look in /etc files, then in
    NIS maps)?

(2) Where are the usual NIS clients such as ypcat?

Thanks.
--
Art Werschulz (8-{)}   "Metaphors be with you."  -- bumper sticker
GCS/M (GAT): d? -p+ c++ l u+(-) e--- m* s n+ h f g+ w+ t++ r- y?

ATTnet:   Fordham U. (212) 636-6325, Columbia U. (212) 939-7061

 
 
 

NIS on RedHat

Post by Uli Hofstoett » Thu, 05 Dec 1996 04:00:00



|> Hi.
|>
|> We have installed the RedHat 4.0 from CDROM, but cannot find NIS
|> clients such as ypcat.  NIS client services are not working.
|> We have followed the directions in section 5.13 of the RedHat Linux
|> User's Guide.  Here are the relevant files:
|>
|> (1) How can I get NIS to work in this way (look in /etc files, then in
|>     NIS maps)?
|>

Do you have ypbind and the portmapper running?

I don't know much about redhat, i am using slackware and had no probs setting
it up as nis-client.
If you dont find the client binaries (ypbind, ypwhich, ypcat), maybe you did
not install them.

From the Linux NIS-HOWTO:
---- cut ----
5.3 The Software

The system library "/usr/lib/libc.a" (version 4.4.2 and better) or the shared library "/usr/lib/libc.sa" and
its related DLL contain all necessary system calls to succesfully compile the NIS client and server
software.

Some people reported that NIS only works with "/usr/lib/libc.a" version 4.5.21 and better so if you
want to play it safe don't user older libc's. The NIS client software can be obtained from:

        Site                   Directory                        File Name

        ftp.uni-paderborn.de   /pcsoft2/linux/local/yp          yp-clients.tar.gz
        ftp.funet.fi           /pub/OS/Linux/BETA/NYS/clients   yp-clients.tar.gz
        ftp.lysator.liu.se     /pub/NYS/clients                 yp-clients.tar.gz
        sunsite.unc.edu        /pub/Linux/system/Network/admin  yp-clients.tar.gz

Once you obtained the software, please follow the instructions which come with the software.
---- cut ----

|> (2) Where are the usual NIS clients such as ypcat?
|>
|> Thanks.
|> --
|> Art Werschulz (8-{)}   "Metaphors be with you."  -- bumper sticker
|> GCS/M (GAT): d? -p+ c++ l u+(-) e--- m* s n+ h f g+ w+ t++ r- y?

|> ATTnet:   Fordham U. (212) 636-6325, Columbia U. (212) 939-7061

--

----------------------------------------------------------------
Rule 46, Oxford Union Society, London:
        Any member introducing a dog into the Society's premises shall
        be liable to a fine of one pound.  Any animal leading a blind
        person shall be deemed to be a cat.

 
 
 

NIS on RedHat

Post by Peter Wainwrig » Thu, 12 Dec 1996 04:00:00



Quote:> Basically, we would like to get info (e.g., user info) from the usual
> /etc files if it exists, and if said info isn't available through the
> /etc files, we then would go to NIS.

> So, my questions are

> (1) How can I get NIS to work in this way (look in /etc files, then in
>     NIS maps)?

I believe others have made suggestions as to your 2), but to get
nsswitch.conf to look in one place then another you can put several options
on each line in the order you want to look in. For example:

hosts: files nisplus

would look in /etc/hosts and in nis if it wasn't found in hosts. Repeat
as desired for other lines... (I should say I haven't tried this under
Linux but that's how it works under Solaris and I'd expect it to be
the same)

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Peter Wainwright                                                          

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

 
 
 

1. Solaris 2.5.1 NIS client with a RedHat Enterprise ES release 3 NIS master..

Hi all,

I have a few solaris machines ranging from 2.5.1 to 7 that passwords
via NIS no longer work on.  The NIS master is a linux machine that had
just been upgraded a few weeks ago.  After the upgrade, passwords on
the solaris clients stopped working.  I can do anything and everything
NIS related between the solaris client and the linux master, except
for execute yppasswd or login.  This had been working fine when we
were previously running the NIS master on a RedHat 7.1 machine.

When I try to login to the solaris machine, it says the password is
invalid.  If I login as root and run 'yppasswd username', i get this:

bash-2.01# yppasswd jason
Enter login(NIS) password:
Sorry: wrong passwd
Permission denied

But the password is right.  I tried downgrading the NIS master last
night to see if that was the problem, but that made no difference at
all.  I'm assuming it has something to do with the password encryption
but have no clue where to look or what to do.

Can anyone please help me with this issue?  Let me know if you need
any additional information too.

Thanks,

JP

2. SP1 for illegal WIN XP

3. Redhat 7.3 NIS errors (Internal NIS error)

4. tar and compress/uncompress

5. Would NIS+ master work with NIS+ & NIS Slave?????????

6. Internal SCSI Zip Driver configuration

7. NIS : auth problem with Linux nis server and SUN sparc nis client

8. printcap for HP deskjet 520

9. NIS+ : Can an HP be a NIS client to a Sun NIS+ server

10. uninstall REDhat linux uninstall REDhat linux uninstall REDhat linux uninstall REDhat linux uninstall REDhat linux uninstall REDhat linux uninstall REDhat linux

11. NIS+ and RedHat 6.0 problems

12. RedHat 7.2 and NIS

13. Cannot install the NIS (Redhat 6.1)