SUMMARY (AGAIN!!) : Restrict login access

From: Giwrgos Menegakis (menes@cc.uch.gr)
Date: Sat Nov 09 1996 - 10:07:28 CST


Hello , I sent a Summury whith only the names of the people who reply to
my request and not the original question and the solution.I am sorry ,so
I summarised again

 The original question was :
 I want to run NIS (not NIS+) server on one machine
 and I want to restrict login access to this machine.
 All replied to me that the solution is to create a
 netgroup whose members would have login access to this
 machine
eg: vi /var/yp/src/netgroup
 
add this line to netgroup file

netgroup_name_who_have_access (,member_1,) (,member_2,) ... (,member_n,)

#cd /var/yp/
#make netgroup
 
add at the end of /etc/shadow and /etc/group
+:
add these lines at the
+@netgroup_name_who_have_access::0:0:::
+::0:0:::/etc/no_login

change
passwd : compat
group : compat at /etc/nsswitch.conf

and of cource create /etc/no_login

The point is that I had done this stuff but nobody
could login in this machine except those in /etc/passwd
which I was trying to avoid...

Finally I did what I had to do from the beggining !!!
I changed the line
#EMULYP="-Y" to
EMULYP="-Y"
at the file /etc/init.d/rpc and finally I got restricted login access
to this machine.

Thanks to those who replied

Jochen Bern
Irana Whitaker-Patel
Viet Hoang
Benjaming Cline
Peter Bestel

+--------------------------------------------------+
| George `crocodile' Menegakis |
+--------------------------------------------------+



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:15 CDT