From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8146 invoked from network); 15 Nov 2021 18:56:14 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 15 Nov 2021 18:56:14 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id A88649C7A3; Tue, 16 Nov 2021 04:55:55 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id D35A29C2A0; Tue, 16 Nov 2021 04:55:02 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bsdimp-com.20210112.gappssmtp.com header.i=@bsdimp-com.20210112.gappssmtp.com header.b="T7TBd9Gh"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 362A59C1E1; Tue, 16 Nov 2021 04:54:55 +1000 (AEST) Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) by minnie.tuhs.org (Postfix) with ESMTPS id 9A4BB9BCFF for ; Tue, 16 Nov 2021 04:54:52 +1000 (AEST) Received: by mail-vk1-f182.google.com with SMTP id a129so9701853vkb.8 for ; Mon, 15 Nov 2021 10:54:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H3UribUWStlsLwY62+3LaKysRet18xUp2QDmt3DZfMA=; b=T7TBd9GhswGUvAePzNSkKwdaq41VnzLgJK1ZgZ46+V7j1sAis34TXm/cYf8m6OxMD/ G3XkGYmezFUeL+cyrpgo+4OJd1IRW7DoiTyKZXH+uMxnZzLBQ9JO0c58/tx/LV+8+Oy1 h/aajfqdxSYxxUEZM771ZcgofWJb8oI2N/TU6FqBKkHH/sja1vBHCHsbxZyMze45Uyqh h5VG1aSK3l4NPd+io2ekGYlF3LROsj+SwVwFj9lxzNyG46va+z8GS+L4Z6q5qj9iYnGl Gq4ot5m/+1BU0qUsXR/41cEA7t9hhmofugEZ7B3EIn2wmHgbto9uvKX2omvKkka3KUM/ Xnow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H3UribUWStlsLwY62+3LaKysRet18xUp2QDmt3DZfMA=; b=veuFmkYZ0A0POUzUu999SL0EXxZ1N5u+/iqUombVMr2s480dCf+1Abe4mBdnNq24it 25OM8+aTsdD21utyM3P5RgKlEeZP081lfQRWExuJnGhUyv2n1FjX9i37bAHPjbxW1JRa e9Voypcz/dCe0DBeydkomnp77dp9y1SfsDokcISU0rTaKo8sJsEroed6lQj93OgHhaOn W78Gv2XnGyCjjceN7pKv/FLqhH6V7fEsMQK/jEkVESpZOsOZm/emdYLxL+Zdaipk7kE7 AkFZSWJM3YNEnFjzvmJWMvvNgdL81otDFyx1ikJBh6MOIQ5JwkzoyDAJVJfoiQO4eH12 J0GQ== X-Gm-Message-State: AOAM532TOVk4nNnGpqHUn63ZT9u0vfKoq6jS4y/gA42UrPJnjpiQuJ0b oqtN7g5tkQ/gGWlh1i7wnq8IDG2Gv/Xn/2SuyiH0QS7SL9w= X-Google-Smtp-Source: ABdhPJyNzqisrDd6Ebecvq6R/Rg2Rq8O7yDOzz3eQYNARu1IEXE2zH/ekbqW/HhA9DHEISAadQHodnwNyt6CIAHCZTU= X-Received: by 2002:a05:6122:114c:: with SMTP id p12mr62629315vko.21.1637002491318; Mon, 15 Nov 2021 10:54:51 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Mon, 15 Nov 2021 11:54:40 -0700 Message-ID: To: Clem Cole Subject: Re: [COFF] [TUHS] Will someone please explain the history and usage of gpasswd / newgrp / sg? X-BeenThere: coff@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Computer Old Farts Forum List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Unix Heritage Society , Henry Bent , COFF , Grant Taylor Content-Type: multipart/mixed; boundary="===============0496662149715844561==" Errors-To: coff-bounces@minnie.tuhs.org Sender: "COFF" --===============0496662149715844561== Content-Type: multipart/alternative; boundary="000000000000fdef7b05d0d857b0" --000000000000fdef7b05d0d857b0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes. V7 had chgrp too. It dealt only with adjusting the group "ownership" of a file. Warner On Mon, Nov 15, 2021 at 11:52 AM Clem Cole wrote: > 3BSD has the V7 scheme, the new kernel code where there is a group list i= n > the process is not introduced until later/ > =E1=90=A7 > > On Mon, Nov 15, 2021 at 1:46 PM Henry Bent wrote= : > >> On Mon, 15 Nov 2021 at 13:31, Clem Cole wrote: >> >>> Grant, >>> >>> Mashey and crew basically did most of the original group work as part o= f >>> PWB. If you look at the Sixth Edition sources and the PWB 1.0 stuff, = that >>> is one of the places you will find differences. With Seventh Edition (= or I >>> believe as part of the UNIX/TS work that Ken picked up), the Mashey gro= up >>> changes went back into the Research stream. With one of the predecessor= s to >>> 4.2BSD (it may have 4.1A or 4.1B but frankly I have forgotten) Joy >>> introduced the group scheme we all use today. >>> >>> >> Looking at the TUHS archives, unless I'm missing something, 3BSD has >> groups that appear to be in the modern format: >> >> % ls -l /bsd/3bsd/etc/group >> -r--r--r-- 1 root root 44 1980-01-02 22:08 /bsd/3bsd/etc/group >> % cat /bsd/3bsd/etc/group >> staff:*:10:bill,ozalp >> grad:*:20: >> prof:*:30: >> % find . -name 'chgrp*' | xargs ls -l >> -r-xr-xr-x 1 root root 6960 Dec 30 1979 ./usr/bin/chgrp >> -r--r--r-- 1 root root 26 Feb 12 1979 ./usr/man/man1/chgrp.1 >> -r--r--r-- 1 root root 754 Feb 12 1979 ./usr/src/cmd/chgrp.c >> >> -Henry >> > _______________________________________________ > COFF mailing list > COFF@minnie.tuhs.org > https://minnie.tuhs.org/cgi-bin/mailman/listinfo/coff > --000000000000fdef7b05d0d857b0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes. V7 had chgrp too. It dealt only with adjusting the gr= oup "ownership" of a file.

Warner
<= br>
On Mon,= Nov 15, 2021 at 11:52 AM Clem Cole <cl= emc@ccc.com> wrote:
3BSD has the V7 scheme, the new kernel code = where there is a group list in the process is not introduced until later/
=3D""=E1=90=A7

On Mon, Nov 15, 2021 at 1:46 PM Henry B= ent <henry.r= .bent@gmail.com> wrote:
On Mon, 15 Nov 2021 at 13:= 31, Clem Cole <clemc@= ccc.com> wrote:
Grant,

Mashey and crew basically did most of the original group work as = part of PWB.=C2=A0 =C2=A0If you look at the Sixth Edition sources and the P= WB 1.0 stuff, that is one of the places you will find differences.=C2=A0 Wi= th Seventh Edition (or I believe as part of the UNIX/TS work that Ken picke= d up), the Mashey group changes went back into the Research stream. With on= e of the predecessors=C2=A0to 4.2BSD (it may have 4.1A or 4.1B but frankly = I have forgotten) Joy introduced the group scheme we all use today.

Looking at the TUHS archives, unle= ss I'm missing something, 3BSD has groups that appear to be in the mode= rn format:

% ls -l /bsd/3bsd/etc/group
-r--r--r-- 1 root root 44 1980-01-02 22:08 /bsd/3bsd/etc/group
% cat /bsd/3bsd/etc/group
staff:*:10:bill,ozalp
grad:*:20:prof:*:30:
% find . -name 'chgrp*' | xargs ls -l
-r-x= r-xr-x 1 root root 6960 Dec 30 =C2=A01979 ./usr/bin/chgrp
-r--r--r-- 1 r= oot root =C2=A0 26 Feb 12 =C2=A01979 ./usr/man/man1/chgrp.1
-r--r--r-- 1= root root =C2=A0754 Feb 12 =C2=A01979 ./usr/src/cmd/chgrp.c
=
-Henry
_______________________________________________
COFF mailing list
COFF@minnie.tuhs.= org
https://minnie.tuhs.org/cgi-bin/mailman/listinf= o/coff
--000000000000fdef7b05d0d857b0-- --===============0496662149715844561== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KQ09GRiBtYWls aW5nIGxpc3QKQ09GRkBtaW5uaWUudHVocy5vcmcKaHR0cHM6Ly9taW5uaWUudHVocy5vcmcvY2dp LWJpbi9tYWlsbWFuL2xpc3RpbmZvL2NvZmYK --===============0496662149715844561==--