zsh-users
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Paul Lew" <paullew@cisco.com>, <zsh-users@sunsite.auc.dk>
Subject: RE: GID behavior
Date: Tue, 9 Jan 2001 12:03:32 +0300	[thread overview]
Message-ID: <000801c07a1b$0a866760$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <14938.51151.386870.208752@paullew-ultra.cisco.com>

> 
> According to zsh manaul:
> 
>      GID <S>
>           The real group ID of the shell process.   If  you  have
>           sufficient  privileges,  you may change the group ID of
>           the shell process by assigning to this parameter.  Also
>           (assuming  sufficient privileges), you may start a sin-
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>           gle command under a different group  ID  by  `(GID=gid;
>           command)'
> 

     setgid()   If the effective user ID of the process calling setgid() is
                the superuser, the real, effective, and saved group IDs are
                set to the gid.

                If the effective user ID of the calling process is not the
                superuser, but gid is either the real group ID or the saved
                group ID of the calling process, the effective group ID is
                set to gid.

You must be root to change your GID. The newgrp command is SUID root:

bor@itsrm2% ll =newgrp  
-rwsr-xr-x   1 root     bin        22805 Nov 18  1998 /usr/bin/newgrp*

-andrej


      reply	other threads:[~2001-01-09  9:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-09  8:11 Paul Lew
2001-01-09  9:03 ` Andrej Borsenkow [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='000801c07a1b$0a866760$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=paullew@cisco.com \
    --cc=zsh-users@sunsite.auc.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).