Change user/primary group for executed command.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 06 Jul 2011 14:39:15 +0300
changeset 889 f18e156d1549
parent 888 4c1e80956723
child 891 8e87f1c5c60d
child 892 9cecee6342a3
Change user/primary group for executed command.
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
+