-*- mode: outline; coding: utf-8 -*-* Stop sudo asking for password. username ALL =(ALL) NOPASSWD: ALLor @group ALL =(ALL) NOPASSWD: ALL* Change user/primary group for executed command. $ sudo -u $user -g $group $commandTo allow this plase in /etc/sudoers: username ALL =(ALL:ALL) NOPASSWD: ALL