Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Setting default group (newgrp ?)
- X-seq: zsh-users 13656
- From: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Setting default group (newgrp ?)
- Date: Tue, 6 Jan 2009 18:33:17 -0500 (EST)
- In-reply-to: <b11ea23c0901061516m17816cdcm7841f4197f26b1d9@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <b11ea23c0901061406i6b2ba6b2y9ab797a9bc4e6803@xxxxxxxxxxxxxx> <alpine.LNX.2.00.0901061725330.31940@acer> <200901062356.47978.ml-lists@xxxxxxxxx> <b11ea23c0901061516m17816cdcm7841f4197f26b1d9@xxxxxxxxxxxxxx>
On Tue, 6 Jan 2009, Webb Sprague wrote:
You can just use 'sg' to run commands under differnet groups without
restarting your session.
That is cool, but I definitely would like to fix the problem
permanently. I am surprised that there need to be so many
work-arounds....
'sg' is really just a convenient wrapper for 'newgrp'.
$ l =sg =newgrp
lrwxrwxrwx 1 root root 6 2008-09-10 09:12 /usr/bin/sg -> newgrp
-rws--x--x 1 root root 19684 2008-09-10 09:12 /usr/bin/newgrp
So, that's one "work-around" that's not a workaround. Did it work in your
case, though? I'd be surprised if it worked when 'newgrp' didn't.
And the two tricks I mentioned are pretty stupid (but have worked for me).
(I didn't know about 'newgrp' or 'sg' before this thread.)
Best,
Ben
Messages sorted by:
Reverse Date,
Date,
Thread,
Author