From: Paul Lew <paullew@cisco.com>
To: zsh-users@sunsite.auc.dk
Subject: GID behavior
Date: Tue, 9 Jan 2001 00:11:59 -0800 [thread overview]
Message-ID: <14938.51151.386870.208752@paullew-ultra.cisco.com> (raw)
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)'
This is what happened:
$ id
uid=46991(paullew) gid=25(eng) groups=25(eng),3010(cdseng),3011(cnsar)
$ GID=3011 touch x
$ ls -l x
-rw-rw-r-- 1 paullew eng 0 Jan 8 23:48 x
$ chgrp cnsar x
$ ls -l x
-rw-rw-r-- 1 paullew cnsar 0 Jan 8 23:48 x
$ GID=3011
$ echo $GID
25
$ echo $ZSH_VERSION
3.1.9-dev-7
$ uname -a
SunOS cns-build2 5.6 Generic_105181-16 sun4u sparc
So, bug, feature, or I missed something? Thanks in advance.
next reply other threads:[~2001-01-09 8:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-09 8:11 Paul Lew [this message]
2001-01-09 9:03 ` Andrej Borsenkow
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=14938.51151.386870.208752@paullew-ultra.cisco.com \
--to=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).