[13702] in Athena Bugs
Re: sun4 7.7K: xlogin
daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Jul 31 05:01:37 1995
Date: Mon, 31 Jul 1995 05:01:36 -0400
From: Greg Hudson <ghudson@MIT.EDU>
To: John Hawkinson <jhawk@MIT.EDU>
Cc: bugs@MIT.EDU, brlewis@MIT.EDU
In-Reply-To: "[13022] in Athena Bugs"
> Xlogin should add your gid, in addition to your grplist, to
> the /etc/group file (it is not necessary for you to actually
> be _listed_ in /etc/group file, merely for your group to be)
Anyone who wants to work on fixing this should know:
* There are three places where passwd entries and group
entries are added to machines on Athena: xlogin, the Athena
login, and in the "common" Athena login library
(athena/bin/AL). They each use different bits of code.
(It's possible that ftpd also adds people to groups; I don't
know.)
* The "common" Athena login library doesn't actually add
people to groups right now due to a bug.
* There are a number of deficiencies in all three bits of
group-adding code; in addition to not adding the primary
group, they all don't take into account local groups when
counting groups, so you can end up with too many groups to
do a "newpag". (One exception: xlogin under AIX does the
right thing.)
* I have fixed the login behavior (related to both preexisting
local groups and lack of the primary group) in all three
places in the NetBSD/Athena port, and have also junked the
Athena login group-adding code in favor of duplicating the
xlogin group-adding code. The NetBSD/Athena version of
libAL still uses a separate algorithm. The changes I've
made should work on all Athena platforms.
(In theory, I should submit patches at this point, but I'm not
motivated to do that right now.)