# HG changeset patch # User Oleksandr Gavenko # Date 1309952355 -10800 # Node ID f18e156d15496127027468a38fa8f4174b75234d # Parent 4c1e809567239818ff0364d89a5ae0a282ecceb9 Change user/primary group for executed command. diff -r 4c1e80956723 -r f18e156d1549 sudo.rst --- a/sudo.rst Fri Jul 01 17:42:53 2011 +0300 +++ b/sudo.rst Wed Jul 06 14:39:15 2011 +0300 @@ -8,3 +8,11 @@ @group ALL =(ALL) NOPASSWD: ALL +* Change user/primary group for executed command. + + $ sudo -u $user -g $group $command + +To allow this plase in /etc/sudoers: + + username ALL =(ALL:ALL) NOPASSWD: ALL +