[762] in RedHat Linux List
Re: NIS under RH 4.0 [Summary]
daemon@ATHENA.MIT.EDU (Eduardo Augusto Trettel)
Thu Oct 24 14:25:00 1996
Date: Thu, 24 Oct 1996 16:17:40 -0200 (BDB)
From: Eduardo Augusto Trettel <trettel@fee.unicamp.br>
To: redhat-list@redhat.com
cc: Eduardo Augusto Trettel <trettel@fee.unicamp.br>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
First of all, many thanks for the answers. Since some people seens
not have understood my previous posting, and there are a few confliting
answers, I decide to post this Summary, in the hope that it will be
usefull for other people.
1) The problem:
My goal was set a Linux RH 4.0 box as a NIS client. This is
quite straingthforward, since the code in the new libc implements all
the funcionallity we need. Differently from Sun's NIS. there is no
need to run 'ypbind', neither include '+:*:0:0:::' at the end of
/etc/passwd. You only have to set your NIS domainname correctly.
The default behavior is to validate ALL the users/groups
listed in the NIS server maps. Let's suposse now that we would
like to instruct the client to validate only a few users from
the whole set, say the members of some project. Only style NIS
clients (as the shipped by Sun or supplied in other releases of
Linux) allow you to include the following the /etc/passwd:
+joe
+mary::::::/usr/local/bin/ultra-tcsh
The first line validates the user 'joe' to login, taking
all the passwd fields from the NIS server, while the second one
validates 'mary', changing her shell to 'ultra-tcsh' regardless what
is set in the server map. This applies to any other field. All the
remaining users listed in the maps aren't recognized.
The problem here was to make the clients shipped with RH 4.0
to work this way.
2) The solution:
Change the following lines in /etc/nsswitch.conf:
passwd: files nisplus nis
group: files nisplus nis
to
passwd: compat
group: compat
This enables compatibility mode with old NIS scheme.
Best Regards,
Trettel
============================================================================
E. Trettel <trettel@fee.unicamp.br>
System Manager
SIFEE - FEE - UNICAMP
Bloco E - SALA 21
Fone: (019) 239-7421 (r. 295)
Campinas - SP - Brasil
============================================================================
--
PLEASE read the Red Hat FAQ, Tips, HOWTO and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-HOWTO
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null