Operating System - HP-UX
1835592 Members
2430 Online
110079 Solutions
New Discussion

[help]about the netgroup.[help]

 
SOLVED
Go to solution
zhangr_2
Advisor

[help]about the netgroup.[help]

I wanna use netgroup to restrict the nis user to login to the NIS master,I saw some system have an entry like:
+@sys_adm:::::: in nis master's /etc/passwd
and it can restrict only member belong to sys_adm group can login this server.
but I don't know how to make it happen,where I can define the sys_adm?
and how to implement it.
thanks 8-)

Ricky with 8-)
1 REPLY 1
Con O'Kelly
Honored Contributor
Solution

Re: [help]about the netgroup.[help]

Hi

I'm struggling to remember NIS but I believe you need firstly to put an entry in /etc/nsswitch.conf file as follows:
passwd: compat
group: compat

You will then need to define the users in the sys_adm netgroup.

I think you define sys_adm and its users in /etc/netgroup file. (See man netgroup)

There is alot more information in the "NFS Services Admin Guide" (See the section on Configuring and Administering NIS.)
http://www.docs.hp.com/hpux/onlinedocs/B1031-90054/B1031-90054.html

Hope this helps.

Cheers
Con