Path: utzoo!utgpu!water!watmath!clyde!rutgers!uwvax!dogie!rhesus!bin
From: bin@rhesus.primate.wisc.edu (Brain in Neutral)
Newsgroups: comp.unix.wizards
Subject: Re: Setting up groups
Message-ID: <261@rhesus.primate.wisc.edu>
Date: 17 Dec 87 16:02:16 GMT
References: <10863@brl-adm.ARPA>
Organization: UW-Madison Primate Center
Lines: 29

In article <10863@brl-adm.ARPA>, preece%fang@gswd-vms.Gould.COM (Scott E. Preece) writes:
< 
<   From: Mark Rosenthal 
< > Also, note that the group in /etc/passwd is not any more special than
< > any of the groups you belong to by virtue of being mentioned in
< > /etc/group.  In 4.?bsd, there is really no longer any reason to have any
< > group information in /etc/passwd.
< ----------
< Well, almost.  The accounting system still records a gid with each
< accounting record and that is the one from the passwd file entry (unless
< it has been changed).  So if you want to do accounting by groups,
< you still need something like newgrp to switch the user into the correct
< group when appropriate.

Unfortunately, disk space accounting by groups still fails, at least if you're
trying to account by who creates the file, as opposed to where they create
it.  Files get the group of their directory, not the group that the user is
currently running as ... oh, well.

Trying to get group id information from sa is problematic, too.  At least
as far as I can tell from the man page, sa only puts out user id, not group
id.  Am I wrong - is there some way to do it without writing a local hack?

---
Paul DuBois     UUCP: {allegra,ihnp4,seismo}!uwvax!rhesus!dubois    |
                ARPA: dubois@rhesus.primate.wisc.edu              --+--
                                                                    |
"Live by the sword, die by the sword."                              |
s/the sword/promiscuity/g