|
From: | Bruno Haible |
Subject: | Re: program that runs a given command under a given gid |
Date: | Sat, 26 May 2012 18:35:48 +0200 |
User-agent: | KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; ) |
I asked: > Is there a program that runs a given command with the identity changed > to a given group id? Like 'sudo' does for the uid, but for the gid instead. > Does such a program exist? Yes. 'newgrp' and 'sg'. newgrp is even specified by POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/newgrp.html > I'd suggest that such a program gets added to coreutils. 'newgrp' and 'sg' already exist in pwdutils. Sorry for the noise. Bruno
[Prev in Thread] | Current Thread | [Next in Thread] |