Operating System - HP-UX
1824485 Members
3520 Online
109671 Solutions
New Discussion юеВ

Netgroups in the /etc/group File

 
Tan Eu Soon
Occasional Advisor

Netgroups in the /etc/group File

Hi all,

I'd added the following lines in the /etc/passwd to deny users in the support netgroup access to my HP-UX11i server.

-@support
+::-2:60001:::

However, it didn't seems to work. Have I miss out any thing.

Thanks,
Eu Soon
6 REPLIES 6
Ravi_8
Honored Contributor

Re: Netgroups in the /etc/group File

Hi

This entry in /etc/passwd works if you have NIS setup
never give up
Tan Eu Soon
Occasional Advisor

Re: Netgroups in the /etc/group File

Hi Ravi,

I do have a nis & netgroup setup. In fact, this setting works on my other solaris and linux machines but not HP-UX. That's why I thot I may have missed out something.

My nsswitch.conf are as follow:

passwd: files nis
group: files nis
netgroup: files nis

Regards,
Eu Soon
Tan Eu Soon
Occasional Advisor

Re: Netgroups in the /etc/group File

Sorry, the nsswitch.conf shld be:

passwd: compat
group: compat
Tan Eu Soon
Occasional Advisor

Re: Netgroups in the /etc/group File

Can somebody help.

Thanks and happy new year to all.
Peter Nikitka
Honored Contributor

Re: Netgroups in the /etc/group File

Hi,

I think you have to to change

-@support

to

-@support::::::

Perhaps add dummy values for UID and GID like in the +:: line to make 'pwck' happy ...

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Tan Eu Soon
Occasional Advisor

Re: Netgroups in the /etc/group File

Thanks folks, I've managed to resolved it. The problem was caused by incorrect setting in the /etc/nsswitch.conf.