From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by sourceware.org (Postfix) with ESMTPS id E4E023858D38 for ; Mon, 22 Apr 2024 05:55:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E4E023858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E4E023858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::52b 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 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-571be483ccaso4705325a12.2 for ; Sun, 21 Apr 2024 22:55:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713765332; x=1714370132; darn=cygwin.com; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=tuFcriqC3RcgzDS6UzSn8ZOQ7V6wAopD9oOw3jvrYuM=; b=bz/ma2tUY9/zds5UmVVjNUmQN7+aYKVaqMj40mBqa/a4AWA8rZYJ2r6mpHCz903k1m TIa4EjhM+QbTqT2/g7pz4dTb1fuCC4oudKWP6T5uw1pHISkbxqCoK/LA6xrdxgkd2DHP gWSh39KCoaFqOQrkiAy3vJiOGX9OOIzEmomUxuSftjZVT2UkwIbh2wXdmviLX7MucaOS Oui6BltSZoAKBzA17GKj4No1ozjbHPkuBR2lHh8jqyJnDP1nsPijVpP3LT6Oy55Whg4U J/v9MUi3/U4qRDyqZW9/lO60QRrGGXDQWpesOTVUYGrb6crKvy7+kFLXbxfwBR7Glt+n wf0Q== 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: In-Reply-To: From: Cedric Blancher Date: Mon, 22 Apr 2024 07:55:00 +0200 Message-ID: Subject: Re: /usr/bin/sg in Cygwin? To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" 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 List-Id: On Mon, 22 Apr 2024 at 01:20, Dan Shelton via Cygwin wrote: > > 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. > > > > 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 [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur