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 8010 invoked from network); 15 Nov 2021 18:55:10 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 15 Nov 2021 18:55:10 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 4BC7F9C63F; Tue, 16 Nov 2021 04:55:09 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 878959C1E1; Tue, 16 Nov 2021 04:54:55 +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 DF4009C203; Tue, 16 Nov 2021 04:54:53 +1000 (AEST) Received: from mail-vk1-f169.google.com (mail-vk1-f169.google.com [209.85.221.169]) by minnie.tuhs.org (Postfix) with ESMTPS id AEB379C1E1 for ; Tue, 16 Nov 2021 04:54:52 +1000 (AEST) Received: by mail-vk1-f169.google.com with SMTP id t127so9705732vke.13 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=WsgpLL0fvImFG2p8V/raPmQ7x858QKKKxbS1TTMpBQSm5fr60oTUKkxoyIVavOGB3w vmLtU/1gVDpnyChJQ26GTCD3a+5ntnkoKa1V6sHoSOedQ9DD3XBDoMnqMjuBZAttMHlO kOVXl/WmWJNruVeDMaK+GacI1/rdyGuW4t6EQ58mz0HTCCPXTVsXhdFkoA8l9oHCgnGk Sue1A0wax+ihHHMqEKUucIJe+JI11FuCm2N5Pyduuxx2ZVnkheKxZwWTUXmKZ7FWb5gi DWFnSrKuqLC7hZkmW0K0HTdFbHnKqIWPVXemr6j3+03iwQWt819wybG53giiVLfEaySE cTFw== X-Gm-Message-State: AOAM530AjrP9rRhMo7yw/O3KKX8f0of0LjKqZ83rpW2QodSW+TR5Po5I tHbvJu6rhcCTvRh7fKy7h1wzwK2+MorUAP72l/eXDQ== 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 Content-Type: multipart/alternative; boundary="000000000000fdef7b05d0d857b0" Subject: Re: [TUHS] [COFF] Will someone please explain the history and usage of gpasswd / newgrp / sg? X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Unix Heritage Society , COFF , Grant Taylor Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --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--