Skip site navigation (1)Skip section navigation (2)
Date:      02 Feb 2001 03:37:35 -0500
From:      Arcady Genkin <antipode@thpoon.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Change group ID in a shell script
Message-ID:  <87vgqteb00.fsf@tea.thpoon.com>

next in thread | raw e-mail | index | archive | help
I'm writing a script to be run from cron that needs to execute a
command with effective group ID different from my login group.

How would I change effective GID in a shell script?  Linux has sg(1)
command for this purpose.  I couldn't find newgrp command, either.

Many thanks,
-- 
Arcady Genkin
Nostalgia isn't what it used to be.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87vgqteb00.fsf>