mdengler / scanbd

Mirror of official scanbd SVN repository
http://sourceforge.net/p/scanbd/code/HEAD/tree/
9 stars 6 forks source link

Use more than one group for saned #6

Open Rockstein2 opened 1 year ago

Rockstein2 commented 1 year ago

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?

Rockstein2 commented 1 year ago

Solved using sg command inside action script.