X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9FAC4385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1713808028; bh=tWkBLaQhRuepIBR02z4/S01d/X4I2qF0n3AyAsl3yr8=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=LEm/Dvs5kFb1gThE/RJBzUq+ggdJ8HfioCjqTf2lupeALKKqUbVeZY2c92dUKsOvv gf7nKLnyMWJ+jCKMQ3xzysk19spRlQNSknF9urNjrtqmh/qRxAlO2W/0xWzvAXnPrC KTbdK9QJt4L91l/vGWVY3kxPM2dn4WtRu2iOeIBM= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7B1033858C32 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7B1033858C32 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713808002; cv=none; b=eaTN4sIB63BV5w5JIXZp/JYW6xcwU+SCmeryuJREiU9SKJjopgjBGnoMJUSXuLu23VrYCMxok7g9WEqqavVnumlP5jSs8HeaOsQQd8aOLROljEvE5wuGr+N894ka3z2JRmoL9CVHkgXdSLD5gk/y8StJ4x7NiKw6vClMxke+exc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713808002; c=relaxed/simple; bh=j5pZRScwAGVSpogYobhooFj5+O3mi4AYLY9798zWTtM=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=iQ4xedNNucTbJc2VrNuDnlcaXW1wk4D4jfVwm+6NlkO5+CuDNCfCcAJqYlsW9aczfZDiqQKX5yOEbI3HE6/eeIHpnMtq23rhhT7K8WLdEZXzfEwoH1sXsqBoGdNW4sOGYg4y3QmTLKL++pKS2/n44RYmcDrIEyNTj9ap7SBZFOA= ARC-Authentication-Results: i=1; server2.sourceware.org Message-ID: <08a4f354-6457-4538-9b79-342830f8eaf0@SystematicSW.ab.ca> Date: Mon, 22 Apr 2024 11:40:39 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: /usr/bin/sg in Cygwin? Content-Language: en-CA To: cygwin AT cygwin DOT com References: Organization: Systematic Software In-Reply-To: X-Rspamd-Queue-Id: BAFDF2002D X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TIME_LIMIT_EXCEEDED, UNPARSEABLE_RELAY autolearn=unavailable version=3.4.6 X-Stat-Signature: on8zb67787bnwyfjzif6bb7h7x7yr5mn X-Rspamd-Server: rspamout01 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX199rizQqPVKU0ANhOdNj3c+lPbNQ47u+fk= X-HE-Tag: 1713807640-55936 X-HE-Meta: U2FsdGVkX197Lbt7zBXUo39JcqkZkMzPfU9IYIqMzemrWAVYUQN4qOB+d+CTapZK3oGwgUQ1oBMDFLZGd+b7ZcuKMYvgEKptPk1rNg2JK1KgnqlQGbCCAeFIG27e+tYZLQHLW/EbgcUTbaYQRvSlt4vjNEx6PCQVqEVLv7bPIn0cvU6LpoejxzhhlUG9ZTJUEkXFrbpMBDlfZsdhN/O3TLvf5JHub1Wb4facCLJczsmB6+uXtvHTRojaGzjpCykkf1BM4YpxO4ABtvzJ00L2vWbaG1Blsd08gPK4YrrShFANh4EfUpgtmlX0o/3JZeSjcGvqpR19K2jHa4DguCXRQ184ZpcNe762qxGh+sEouUYTe1Yjk/UIIMl+VjGhJQSlimro9Uv0Qbvis/M36/IKlVpXMiRjSi2TSv0UCrx5+zED0QdEMezD/wvFELYp4+uAjDkr2lTfMmm31NT51rNwkw== X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 43MHlAwb761479 On 2024-04-21 23:35, Cedric Blancher via Cygwin wrote: > Good morning! > > On Sat, 20 Apr 2024 at 07:39, Brian Inglis via Cygwin wrote: >> >> On 2024-04-19 17:47, Dan Shelton via Cygwin wrote: >>> On Fri, 23 Feb 2024 at 22:25, Dan Shelton wrote: >>>> Is there a package which provides /usr/bin/sg (execute shell commands >>>> in a different group)? >> >> The POSIX standard command is newgrp - install cygwin-doc to see Cygwin (and >> newlib libc) man pages (and info, html, PDF docs), man-pages-posix to see POSIX >> man pages, and man-pages-linux if you want to see recent Linux release man pages. > > Debian /usr/bin/sg (setgid analog to /usr/bin/su) comes from the > package "login" (https://packages.debian.org/bookworm/login), same > package as /usr/bin/newgrp. So maybe it just needs to be packaged by > whoever owns the Cygwin package for /usr/bin/newgrp? The Linux package is all about PAM hooks and other Linux stuff. As with BSD, login authentication is delegated to the underlying OS, in this case MS Windows, so any such utilities have to be rewritten, using the underlying emulation or OS access layers, or additions to them. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple