From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f4da783220bac4f1 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-10-17 22:50:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!pc1-rdng3-3-cust244.winn.cable.ntl.COM!not-for-mail From: "Adam Price" Newsgroups: comp.unix.tru64 Subject: Re: disable login on nis server Date: Fri, 18 Oct 2002 06:51:14 +0100 Message-ID: References: <3DAED4F9.9F88CDD0@hp.com> NNTP-Posting-Host: pc1-rdng3-3-cust244.winn.cable.ntl.com (80.5.157.244) X-Trace: fu-berlin.de 1034920255 25725907 80.5.157.244 (16 [138239]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: archiver1.google.com comp.unix.tru64:8903 In news:aomtln$189$1@nsnmrro2-gest.nuria.telefonica-data.net ,laredo said: > Hello > i have a nis server, a slave server, and 15 nis client, with around 40 > users. Users can validate (login with a telnet session p.e) in nis > client and in nis server (username and password is the same), and i > want that users only login in nis client, not in nis server or slave > server. p.e nis server ->A > nis slave ->B > nis client ->C > nis user -> john > > User john can login in all client and in the nis server and in the nis > slave, and i only want that users only login in nis client. > thanks > Cesar > Please don't top post. According to this table from the security manual you should be able to override the NIS setting on an individual machine. Table 9-1: Controlling NIS with Local /etc/passwd Overrides Symbol Description +: If a user is not found in the local file, authenticate using the NIS file. +username Local file field overrides NIS. Used for partial distribution. -username User is excluded from all matches by local control. +@netgr: List of users to authenticate using the local file. See the netgroup(4) reference page. -@netgr: List of users to refuse using the NIS file. See the netgroup(4) reference page. +:*: Sends all password requests to the NIS map. Or you could simply touch /etc/nologin on the master and slave, then only root will be able to login. Lastly, have you tried removing the +: from the password file on the master and the slave. Then they shouldn't use NIS for authentication but should still serve NIS. Hth Adam