sudo.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 11 Mar 2016 00:24:14 +0200 (2016-03-10)
changeset 1944 b420d5e7e002
parent 1912 8b81a8f0f692
child 2578 63472ea9e73b
permissions -rw-r--r--
Links to ECMA 262 specs.
.. -*- coding: utf-8; -*-

=======
 sudo.
=======
.. contents::
   :local:

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