[ About | Licence | Contacts ]
Written by Oleksandr Gavenko (AKA gavenkoa), compiled on 2024-04-01 from rev 052223c22317.

sudo.

Stop sudo asking for password

username ALL =(ALL) NOPASSWD: ALL

or:

@group ALL=(ALL) NOPASSWD: ALL

The standard group is sudo, so the record will look like:

%sudo ALL=(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