sudo.rst
changeset 889 f18e156d1549
parent 862 b539dd85bbf3
child 899 7b4265c8d324
--- 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
+