X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BEB58385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1713741653; bh=Wh7ZSEdmkEPR4z4cO4cxoMi3OhJX5ZY713G/f2iSgr0=; 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=xUFRxqK9jMnz40SCBEaUv4hsfN13KfuJHe0lhZZ25++rsSvkYmh1NbVVdHuc1kLiP G4/N1tVUcfV7bD/MyCMV/qg/NCfsQPIRo7+zENPw6Rg65Rom7Vsm+0xiHCf9xJFXyr LCu4GG0aqKJDLY71cwDRWAVvzOmwxJkDxrg6eIFc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EC2173858D1E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EC2173858D1E 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 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: Date: Mon, 22 Apr 2024 01:20:02 +0200 Message-ID: Subject: Re: /usr/bin/sg in Cygwin? To: cygwin AT cygwin DOT com 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Dan Shelton via Cygwin Reply-To: Dan Shelton Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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 -- 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