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
