public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
To: cygwin@cygwin.com
Subject: Re: /usr/bin/sg in Cygwin?
Date: Mon, 22 Apr 2024 11:40:39 -0600	[thread overview]
Message-ID: <08a4f354-6457-4538-9b79-342830f8eaf0@SystematicSW.ab.ca> (raw)
In-Reply-To: <CALXu0Ud=0WtCSxNTk8VahNOTX1bdLfkWMq35VSBVnOTNBrswfg@mail.gmail.com>

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 <cygwin@cygwin.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.
> 
> 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


      reply	other threads:[~2024-04-22 17:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-23 21:25 Dan Shelton
2024-04-19 23:47 ` Dan Shelton
2024-04-20  5:38   ` Brian Inglis
2024-04-21 23:20     ` Dan Shelton
2024-04-22  1:35       ` Eliot Moss
2024-04-22  8:46         ` Corinna Vinschen
2024-04-22  5:55       ` Cedric Blancher
2024-04-22  8:54         ` Corinna Vinschen
2024-04-22  5:35     ` Cedric Blancher
2024-04-22 17:40       ` Brian Inglis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=08a4f354-6457-4538-9b79-342830f8eaf0@SystematicSW.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).