Operating System - HP-UX
1833777 Members
2121 Online
110063 Solutions
New Discussion

/etc/logingroup on older HPUX?

 
Becky Sandeer
Occasional Advisor

/etc/logingroup on older HPUX?

Hello,
A thread with the subject "Supplemental group disappearing" from June 2004 discusses using a link from /etc/logingroup pointing to /etc/group in order to get all groups a user is a member of to show up without having to use the newgrp command. I need to do the same thing, but on HPUX 9 and HPUX 8. The link works on my HPUX 10.20 systems, but not on HPUX 8 or 9. I do have the + in the /etc/group file, but my NIS group memberships don't show up when I use the groups command. Is it possible there is a patch for this? Or some other work around? Thanks for any pointers anyone may have,

Becky
7 REPLIES 7
DCE
Honored Contributor

Re: /etc/logingroup on older HPUX?



Becky,

HPUX 8 and 9 have been out of support for so long that I doubt there is any way to get any patches for them. In fact, neither OS is even y2k compliant. If I remember correctly version 8 went obsolete about 10 years ago, and version 9 went obsolete about 5 years ago (but don't quote me on that) If there is any way possible I recommend upgrading the OS to al least 10.20.

If the equipment is too old for 10.20, then you might want to look for newer equipment (you can find used equipment on e-bay at a reasonable price)
Becky Sandeer
Occasional Advisor

Re: /etc/logingroup on older HPUX?

One other interesting thing I forgot to mention. This seems to be a problem with login. If I connect to an HPUX 9 box, then su - to a username, I can see my group memberships. But, if I login as a user that has multiple group memberships, the groups command returns null.
TwoProc
Honored Contributor

Re: /etc/logingroup on older HPUX?

I'm pretty sure the link between logingroup and group worked in HPUX 9.x, but could be mistaken. I don't remember one way or the other if that worked in 8.x. So, I 'm thinking your problem is because the groups are being handled by NIS, but not being told to do so by nsswitch.
If you look in /etc/nsswitch.conf - do you see "files nis" for the "group" line?
I'm thinking all you've got in there right now is "files", and maybe you just need to fix it to read:
group: files nis
We are the people our parents warned us about --Jimmy Buffett
Becky Sandeer
Occasional Advisor

Re: /etc/logingroup on older HPUX?

Thanks for the replies. There is no /etc/nsswitch.conf in hpux 8 or 9. Upgrading is not an option. I have found a patch archive for 8 and 9, and a patch for login. I plan to apply that and will let you know if it resolves the problme I'm seeing.
TwoProc
Honored Contributor

Re: /etc/logingroup on older HPUX?

I'm thinking you don't have (at least I hope not) many of these 8 and 9 boxes. So, you COULD just add what ever is in the /etc/group on the NIS master computer to the /etc/group file in the HPUX 8 and 9 servers.
We are the people our parents warned us about --Jimmy Buffett
Becky Sandeer
Occasional Advisor

Re: /etc/logingroup on older HPUX?

Odd. A local account and local group entry works. I can't get the NIS groups to work for a NIS account. I do only have a handful of these, and a handful of users. So, instead of trying to fix it, I'll add local accounts and a local group entry and call it good. The poor old things are on the way out, anyway. Or at least the sys admin team sure hopes they are! Thank you,
Becky Sandeer
Occasional Advisor

Re: /etc/logingroup on older HPUX?

close