diff -r 32e4be02ab01 -r 7b4265c8d324 sudo.rst --- a/sudo.rst Wed Jul 20 10:52:38 2011 +0300 +++ b/sudo.rst Wed Jul 20 10:54:41 2011 +0300 @@ -1,18 +1,18 @@ --*- mode: outline; coding: utf-8 -*- - -* Stop sudo asking for password. - - username ALL =(ALL) NOPASSWD: ALL - -or - - @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 - +-*- mode: outline; coding: utf-8 -*- + +* Stop sudo asking for password. + + username ALL =(ALL) NOPASSWD: ALL + +or + + @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 +