I would like to play the melody in action script via pc-speaker when scanning. For this I have configured udev rules to set right permittions on /dev/input/by-path/platform-pcspkr-event-spkr. (According to https://github.com/spkr-beep/beep/blob/master/PERMISSIONS.md)
In /etc/scanbd/scanbd.conf is user "saned" und group "scanner" (for debian) provided. Thus I added user "saned" to the new group "beep".
$groups saned - > "saned scanner beep"
If I do "sudo -u saned" beep works fine. But if action script is running, the user saned has only one group "scanner"
$groups saned - > "scanner"
How can I provide a second group to the "saned", that executes the action script?
I would like to play the melody in action script via pc-speaker when scanning. For this I have configured udev rules to set right permittions on /dev/input/by-path/platform-pcspkr-event-spkr. (According to https://github.com/spkr-beep/beep/blob/master/PERMISSIONS.md)
In /etc/scanbd/scanbd.conf is user "saned" und group "scanner" (for debian) provided. Thus I added user "saned" to the new group "beep". $groups saned - > "saned scanner beep"
If I do "sudo -u saned" beep works fine. But if action script is running, the user saned has only one group "scanner" $groups saned - > "scanner"
How can I provide a second group to the "saned", that executes the action script?