/usr/bin/sg in Cygwin?
Brian Inglis
Brian.Inglis@SystematicSW.ab.ca
Mon Apr 22 17:40:39 GMT 2024
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
More information about the Cygwin
mailing list