delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/04/22/01:56:30

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88455384AB60
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1713765388;
bh=+EamRItp1kNwvC0w1kz9n9/5d4pnL4Scg3hhvXSroGU=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=q95h8lfFMOc0atyxZBd5TrVGjDMvSFwMpza9ZCdTQ+1CJghio8ftKzrsEWzcRZzye
Ks0qt+lA2ych9MSWWAfeab7OY98U+vvydtkZdIa7fYxufP7hZqdrmdDFI6omolTwJe
m+d2EDXG/E26wiV7ix1kvqF/uQ785UypLMFG/myo=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E4E023858D38
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E4E023858D38
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713765337; cv=none;
b=xRqx85eleVNGKxorhZ7Zz+PGkYvy8G9GTbhJAB7t8TcpvC3kFjY0fWh7/4HpodDYGFuf/zxbK39jH+UyYCUTT6pk0ZtJrJIv9tXdu/b6rYOOQvwWS2BYb6V1iWEJww3Bach0j3XzDMaaOnZiwZTh8eJB9v8Uh3nTd/S/PvjgZ8M=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1713765337; c=relaxed/simple;
bh=sgLav8x9woWdMYx9uVFTjVOsI24McpmGKWnSsZ+q9u8=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=r7rusmY8IBd0x6gnU2lXsB2N95IidTfulUK2HB5edaE2NQ7gjUQgByMjUXxvMcaW0OUykHQXqtka/gEftUQwNxbamKhqkvhCgx0l36ud+6Wfwd0RydUxL/NUJWQxkNxIQAAoqVC3TcR5iIbVdP8J3DblFClfZlj2qj3Ef94t9AI=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1713765332; x=1714370132;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=tuFcriqC3RcgzDS6UzSn8ZOQ7V6wAopD9oOw3jvrYuM=;
b=cNJGG6kAp5/3GgZKrlrbsbLIRN3Gzd51Wi7V7yWPWj/YvX1d3+R8G52qf9so0TxCrY
BbwqSMKNmBzqR/2Ki1lZ03cXI6nSTByEcLgMtfIK6f0TOP/XnNCqr8BJPllUe3oQxiw/
V9o7bmM8x3rQZvybcLQ9cZCUs+ikVip0jIPXZJ+GCGNCDy+noN+CD/yvnPp/mfgARh9Z
mc6713049NF8Ffn1IuaADfKVtmq8GTHT7TezR4iXsgfb5SfTy13TerEzxkitf7w9qtpn
6isYaB44i7kZ16xMF6tiLX8XvEwUXSh+cazZr8e+3tUApeMulE+mQ/Gt+G0aWdBRFrah
tTkw==
X-Gm-Message-State: AOJu0YznUqpUvb0FSI5wYzh23p7ygGCwNwpFHnKuVZCamp5TLG2XSvWi
Q2IGDcuZHjXgYwJyZ33WNVhBpSAuLcoGcvHBV7Mn/hNbbcKa8Dzap8wSdI7iisF1RVWKTBCrcAz
qhX3AgdJl87NcdAl0vOm4qM64SX5dydVY
X-Google-Smtp-Source: AGHT+IEg6wGSBo4SXv7tCjVLk+HPz5bqxOL20Q8Q+fi4BauWFt9r8UT8MQFK+wgS5GJI+p+I+RYnrleitphDiF89n3I=
X-Received: by 2002:a50:d54a:0:b0:56d:f488:cb0e with SMTP id
f10-20020a50d54a000000b0056df488cb0emr5369956edj.38.1713765332203; Sun, 21
Apr 2024 22:55:32 -0700 (PDT)
MIME-Version: 1.0
References: <CAAvCNcBw0z3EJnjvs4hooW7cmgRvCA=-ofMywYZM3+f9OcJEFQ AT mail DOT gmail DOT com>
<CAAvCNcDch6VYDYR3ocwUdko8m0CUtMCM-OLRqmDDn-8hCQYySg AT mail DOT gmail DOT com>
<b7ee5e6a-f351-4293-861a-9c4b59ef69dd AT SystematicSW DOT ab DOT ca>
<CAAvCNcB_vuStJjnd+GohVM-y=AHZBUP=Gi5A+AAgnddP3wDdQQ AT mail DOT gmail DOT com>
In-Reply-To: <CAAvCNcB_vuStJjnd+GohVM-y=AHZBUP=Gi5A+AAgnddP3wDdQQ@mail.gmail.com>
Date: Mon, 22 Apr 2024 07:55:00 +0200
Message-ID: <CALXu0Uen=vmJ5a8bv7ikOfHf_me0+uPkfcUHSPvugBMj_Vg_SA@mail.gmail.com>
Subject: Re: /usr/bin/sg in Cygwin?
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Cedric Blancher via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Cedric Blancher <cedric DOT blancher AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Mon, 22 Apr 2024 at 01:20, Dan Shelton via Cygwin <cygwin AT cygwin DOT com> wrote:
>
> On Sat, 20 Apr 2024 at 07:39, Brian Inglis via Cygwin <cygwin AT cygwin DOT com> 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.
> >
> > To see possibly relevant commands, run:
> >
> > $ apropos -s 1,1p group
> > chgrp (1)            - change group ownership
> > chgrp (1p)           - change the file group ownership
> > chown (1)            - change file owner and group
> > g3topbm (1)          - convert a Group 3 fax file into a PBM image
> > groups (1)           - print the groups a user is in
> > id (1)               - print real and effective user and group IDs
> > make (1)             - GNU Make utility to maintain groups of programs
> > make (1p)            - maintain, update, and regenerate groups of programs
> > mkgroup (1)          - Write /etc/group-like output to stdout
> > newgrp (1)           - change primary group for a command
> > newgrp (1p)          - change to a new group
> > pbmtog3 (1)          - convert a PBM image into a Group 3 MH fax file
>
> newgrp(1) is USELESS. It only opens an interactive shell, but does not
> allow the user to execute a non-interactive script with the requested
> group like bash -c does.

Linux /usr/bin/sg source is in
https://github.com/shadow-maint/shadow/blob/master/src/newgrp.c
So this is just a packaging issue that whoever does the Cygwin newgrp
package has to package /usr/bin/sg too

Ced
-- 
Cedric Blancher <cedric DOT blancher AT gmail DOT com>
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019