Memo

Install

apt install sudo
adduser vlp sudo

Commandes

lance une commande pour le user: user

sudo -u user -g group -i ls /home/vlp/command

lance un shell pour le user: user

sudo -u user -g group -s

ERROR

Error message 'sudo: unable to resolve host <USER>'

  • The /etc/hostname file contains just the name of the machine.

  • /etc/hosts has an entry for localhost. It should have something like:

    127.0.0.1 localhost.localdomain localhost 127.0.1.1 my-machine

Lancer une app sudo sans avoir à taper le passwd

sudo visudo

ajouter:

vlp ALL=(ALL) NOPASSWD: /sbin/wireless.sh