1854736 Members
18303 Online
104102 Solutions
New Discussion

NIS hpux 10.20

 
SOLVED
Go to solution
jim bidebo
Regular Advisor

NIS hpux 10.20

having some minor problems with NIS and groups, running 10.20 at the NIS master, and both 10.20 and 11 on the clients.

The client with hpux 11 works fine even thou theres no + in /etc/group.

But on the hpux 10.20 clients, groups doesnt work (except for the users primary group) (have tried +, +: and nothing at the end of /etc/group)
ypcat group works, ypmatch gropname group and ypmatch gid group.bygid works aswell.

grpck at the NIS master returns NULL login name for the groups that dont have any users specified in /etc/group.
2 REPLIES 2
jim bidebo
Regular Advisor

Re: NIS hpux 10.20

additional info: (hpux 10.20 NIS client)

newgrp (-) group passes without any messages if the user is a member of group, but if not a member it returns "Sorry", but the groups command still returns only the primary group after.

groups username returns the full list with all the groups that username is member of.

Brian Hackley
Honored Contributor
Solution

Re: NIS hpux 10.20

Jim,
I've seen this behavior on some systems in the past and it is a real pesky issue to debug. Typicals include:
- Missing logingroup link. On older HPUX releases this allows a user to be member of muliplegroups.

- ln -s /etc/group /etc/logingroup
- NIS group map with blank line or entry too long (1023 characters)
ypcat -k group.byname > /tmp/groupmap
Run grpck /tmp/groupmap
Also check MOST carefully
for blank links,
for ANY special characters or bogus entry in vi, using "set list" command (set nolist when done)

I think you already said that you checked out the /etc/group
file on the NIS master, especially for ANY entries over 1023, right?

Hope this helps. If all else fails, the HP Response Center can help you via Instant Support.

-> Brian Hackley
Ask me about telecommuting!