I am trying to allow an normal user to run some applications under other UIDs for process separations.The applications should run with certain groups permissions (like audio or cdrom).In the sudoers file i can specify that a user bob can run as a non-privileged user jailed_user without password.bob ALL=(JAILED_USERS) NOPASSWD: ALLSo in order to execute the command i usually use:sudo -u jailed_user -g somegroup MyCommandBut i can specify only one group, the only other option is to preserve bob's group vector.Is there a way i can pick the group vector with sudo?Thanks
Run a command a as a certain user and multiple groups with sudo
sudo