From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id ca5a8404 for ; Sat, 10 Aug 2019 06:02:33 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 4B666948BF; Sat, 10 Aug 2019 16:02:32 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 4109F93D09; Sat, 10 Aug 2019 16:02:11 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 0D38C93D09; Sat, 10 Aug 2019 16:02:07 +1000 (AEST) Received: from firemail.de (firemail.de [144.76.63.194]) by minnie.tuhs.org (Postfix) with ESMTPS id 0F5B093D08 for ; Sat, 10 Aug 2019 16:02:05 +1000 (AEST) Received: from firemail.de (firemail.de [144.76.63.194]) by firemail.de (b1gMailServer) with ESMTP id 2210C7AF for ; Sat, 10 Aug 2019 08:02:04 +0200 (CEST) Date: Sat, 10 Aug 2019 08:02:03 +0200 MIME-Version: 1.0 Message-ID: <51fd4ffbdeb80edffe8f837f04edf1aa@firemail.de> X-Mailer: b1gMail/7.3.0 X-Sender-IP: 46.94.122.126 From: "Thomas Paulsen" To: "Kirk McKusick" In-Reply-To: <201908100402.x7A42p7C008714@chez.mckusick.com> References: <201908100402.x7A42p7C008714@chez.mckusick.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline Subject: Re: [TUHS] Additional groups and additional directory permissions 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: , Reply-To: Thomas Paulsen Cc: tuhs@tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" thanks a lot! --- Ursprüngliche Nachricht --- Von: Kirk McKusick Datum: 10.08.2019 06:02:51 An: Clem Cole Betreff: Re: [TUHS] Additional groups and additional directory permissions > > Late to answer... > > As far as I remember, Clem's description is correct. The filesystem > itself stores only one owner and one group ID. When checking access > to the file, the file owner is checked to see if the user ID matches. > If so, then the owner permissions are applied. If not then the group > array associated with the user is used to decide if the group of the > file matches one of the groups of which the user is a member and if > so the group permissions apply. Otherwise the other permissions are > used. > > In BSD, the group assigned to the file is assigned from the group of > the directory in which it is created. The setgid flag can be set only > if that group is a member of the user's group array. The user can only > change the group ID to one that appears in their group array. > > Until multiple group sets were added to System V, the group of the > file was taken from the gid assigned to the user at login. > > Kirk McKusick >