sudo.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 16 Jun 2020 14:37:50 +0300 (2020-06-16)
changeset 2420 da418d28831e
parent 1912 8b81a8f0f692
child 2578 63472ea9e73b
permissions -rw-r--r--
Temporary constant table.
.. -*- 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