Include only local subsections into TOC. This prevent duplication of
TOC when build single page HTML document. Also this make unnecessary CSS hack
to hide document title as top level section.
.. -*- coding: utf-8; -*-
.. include:: HEADER.rst
=======
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