Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Setting default group (newgrp ?)
- X-seq: zsh-users 13657
- From: "Webb Sprague" <webb.sprague@xxxxxxxxx>
- To: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- Subject: Re: Setting default group (newgrp ?)
- Date: Tue, 6 Jan 2009 15:38:21 -0800
- Cc: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=4rjUY4hEt0ZCOX+MNzjp8ZBWIRRJCZUPjZIsMafUERM=; b=BX5+o11e76J2Cko57cRo/9hDorwdAwebCFrLSLyvlVFJDB2vPUBtJwj1B7DYNp+s43 uEqeQqZH9KcGe2cM9dBKC1UAAO5ouP40p2EzTGYYEjGc3yWFWvAKO7l9slE7Gi6ByD5p 28lHtxm/Uyd9C9vx2XWEUMr3L3mEjhGTfrp0g=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=GN7abJOHE+nThWNiHBV275T7p2gYZmILpOcJNQGXqecd/jcvONFrJj8xDAfmnFAjL0 FnosYh4YNSTelnWakJDXrCp2OXzaPqOza5M5gqgmFBKHDX8WgGcd0o3oncOie8fFP/AS 1XGsU4NJhlhZWX3MNfxUzARGroxZ1mqwvu5yw=
- In-reply-to: <alpine.LNX.2.00.0901061827450.24213@acer>
- 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> <alpine.LNX.2.00.0901061827450.24213@acer>
I think I am resigned to newgrp being irrevocably broken on this
system. Unfortunately, I am not root or anything, so I will just
chgrp when I need to and waste a bunch of time coordinating when I
forget....
Thanks, though to Ben and Uli
-W
On Tue, Jan 6, 2009 at 3:33 PM, Benjamin R. Haskell <zsh@xxxxxxxxxx> wrote:
> 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