NIS+ netgroups to control access
secroft
secroft at micron.com
Mon Jul 1 08:54:21 EST 2002
You need to create a map on your NIS+ master that knows who these users are.
The map is then populated by the nistbladm command to add users to the
netgroup for access.
Format for a netgroup when populated into NIS+ is:
group,host,user,domain,comment
Depending on how you are using netgroups, you can leave fields blank.
Here is a sample from one of our systems, though I have replaced the names
with generic entries:
# These are the netgroup entries for the <landscape> environment
# netgroup. They are used to restrict login privileges
# to each <landscape> system to the specific accounts and a
# very few others.
# For this purpose, the entries should be in the ",host,,,"
# format. There is a chance we may need to use the
# ",host,,domain," format at some time in the future.
#
# Please try to keep the entries sorted alphabetically.
#
# General Format = "group,host,user,domain,comment"
#
,<system>,<account>,,
,<system>,<account>,,
,<system>,<account>,,
,<system>,<account>,,
,<system>,<account>,,
,<system>,<account>,,
,<system>,<account>,,
,<system>,<account>,,
login-unixgrp,<system>,,,
login-sysadmin,<system>,,,
The group can be any NIS+ netgroup and this will encompass the permissions
granted for that group.
The system is what system you want them restricted too and the account is
their NIS+ account.
Scott
-----Original Message-----
From: Kristen J. McFadden [mailto:kjm31 at genome5.cpmc.columbia.edu]
Sent: Sunday, June 30, 2002 11:08 AM
To: linux-nisplus at lists.samba.org
Subject: NIS+ netgroups to control access
Thanks to the people on this list I now have several RH 7.2 NIS+ clients
(NIS+ server is solaris). I am trying to restrict access to these machines
differently from the other NIS+ machines.
In other words, I want to only allow certain NIS+ users (e.g. group
"redhat-users") to access these clients.
I have been told that netgroups can do it. However, all the documentation I
can find basically says to
make a netgroup called "redhat-users", then add the entry to the /etc/passwd
that says "+ at redhat-users -----"
However, when I look at the /etc/passwd file on NIS+ clients, I actually see
the entire access list. It looks like
NIS+ now actually pushes the whole file over to the clients. Therefore, I
guess I have to do it entirely server side..
but how to differentiate between machines that I want everyone in NIS+ to
use (ie. public unix box) vs. these special
redhat machines??
Any comments, suggestions, links, book recommendations?
Thank you kindly,
Kristen
More information about the linux-nisplus
mailing list