From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by sourceware.org (Postfix) with ESMTPS id EC2173858D1E for ; Sun, 21 Apr 2024 23:20:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EC2173858D1E 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 EC2173858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::133 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713741633; cv=none; b=Rjd7SdxUpmsn9oq0Ju9koD59gMbGWYscRXta1UgkCF7X6k2G7JO2GDOIIUinMzNONzUmbmQR2clAp6hspB9V3iasJQtWyTwFAK/urfdklEByXesksmHrAy81kzaXj5By9L68uxLd9c7FsU52kITngBdTV7e92wt2TdskNX7uJn4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713741633; c=relaxed/simple; bh=F7bYANZmIn9yVIvetvkP1cfi5AH6JzUl1Fb8a+aTCuE=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=fXzwt7ZdQwGp0J2eef0gcp3e3ly2rMHk6bwiKqCAOKwtuno6uOFj1tKEdDiX/tDVehb9GDYRiPNejQD1llBX2eRKVKYQ1hdjDxMv2Xe/5NAUz8oP9cgIeGtrIEnOX08JpRpXnjMNCYVUpGfw6+ki9h5KOUuwxltWuAVi50nMJKk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-51b2f105829so540925e87.3 for ; Sun, 21 Apr 2024 16:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713741630; x=1714346430; 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=vImcO13UsWv/slHIQuxZQZnxjAQXnS3UPSxXxe8t0co=; b=kRDwU9KygzuSw2I2tE1uYMHF9k1B0JoE1Ic+aaK4j7L1LUnvtE3Ozrwu53LWTexZFM ExgJ6hRVlExlz/FV8BgiFPu9lkaZwBtD9HYoz4hj0hA0AHQzAWg35bUN3u87T7Rwlj0N 8e1UD7f9RW9r/XOhXtLkYqdntDzlGWdlseYcEyN1oDIVfr/5SwyWlaHKRDyzYfW9QkGj aU/A5o/HcwbkXewf4/0VM/pBmub3+SmKKUbL+pil3+0JnE78uv7M5SxJGcuMLDN7k7eC E13uJn+UOYlsxeBqinbUuJBpRAs1n9Q1EwL8mamBnYYzHlp6HisvZk6gun3Ol8GG6xWZ 08AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713741630; x=1714346430; 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=vImcO13UsWv/slHIQuxZQZnxjAQXnS3UPSxXxe8t0co=; b=PYkh0oucECSgCbltKt5PN0iQHvghpfe5hLBuLzjV6Q3529Z1SV8YIOlhJ+2HhPc7Sz QS9ZrH3k0BBc3wb4iUaBIOe5YXDj87foolYkCgpkpKzDMafy/IrqoaprVdOauWLJYt0g B724V9PDZidAtje6Qz3GHsUXvoF8C3HszqwDpFizJXCA2q4IX7YiX2Gbfwvv2XHOXmW0 eiN15E3PsgNjLcwO3OT0gKl93oBy5Q5LtKKKxuT6AwBXoZZ2+GYPlu6dsfGRyyeJ0Uyi VHoDYRseOEyuUrup6erD8GFHD15OdfckcX1ntHi4j6MvNHnJDaD3SM926VQPIUZDjGdA EBVg== X-Gm-Message-State: AOJu0YzXLXtVvPGcmo5jzHJIUexYLXOYH8JEFuvCHxS9cN55WMqAEX80 QGxjSGAsf6KOtwD6TCAHupyIQzSRWq4//V99zwl/A5izou8dSOEOaJkc54I0LrX6fwLeDbEtmeC KC+dKi60bXFeaLd1W7sNeelf4L+SIlA== X-Google-Smtp-Source: AGHT+IEmw6cutQ/Nfjxf/SjTss/kBJpf/DEfeYFyk2kSxMOHepr/WM1l+99v2drCb/VqHm8s1Cssy8WtipvXm9o1W3s= X-Received: by 2002:a05:6512:224f:b0:518:9ce0:e621 with SMTP id i15-20020a056512224f00b005189ce0e621mr7808495lfu.1.1713741629974; Sun, 21 Apr 2024 16:20:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dan Shelton Date: Mon, 22 Apr 2024 01:20:02 +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.0 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 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. Dan -- Dan Shelton - Cluster Specialist Win/Lin/Bsd