Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.sys.hp.hpux FAQ
Section - 5.14.3 Has /etc/logingroup functionality changed in 11.x?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Airports ]


Top Document: comp.sys.hp.hpux FAQ
Previous Document: 5.14.2 How can I set up group-based FTP access?
Next Document: 5.15 X-Windows and CDE
See reader questions & answers on this topic! - Help others by sharing your knowledge

HP has confirmed the change from 10.x to 11.x in the setting of the
group id at login time vis-a-vis /etc/logingroup.

It's not documented, but now the behavior is sort of the *reverse* of
10.x behavior:

10.x:
  o no /etc/logingroup --> only GID is that from /etc/passwd.
                  The user must execute 'newgrp' to change GID.
  o /etc/logingroup exists --> user is effectively the member of every
                  group in which he is listed in /etc/logingroup, without
                  having to do a 'newgrp'.

A common trick is simply 'ln -s /etc/group /etc/logingroup' if you want
membership in all groups listed in /etc/group.

11.x:
  o no /etc/logingroup --> user is effectively the member of *every*
                  group in which he is listed in /etc/group
  o /etc/logingroup exists --> user is effectively the member of *only*
                  the groups in which he is listed in /etc/logingroup.

So, the "workaround" to get 11.x to behave as 10.x did, is simply:

  # >/etc/logingroup

Now the user is now not listed in any groups in /etc/logingroup and so is
only a member of the group listed /etc/passwd. I'm not sure why you'd ever
want to fall back to the 10.X behavior except, maybe, legacy situations of
some sort.

User Contributions:

Comment about this article, ask questions, or add new information about this topic:




Top Document: comp.sys.hp.hpux FAQ
Previous Document: 5.14.2 How can I set up group-based FTP access?
Next Document: 5.15 X-Windows and CDE

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
hpux.faq@gmail.com





Last Update March 27 2014 @ 02:11 PM