Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use more than one group for saned #6

Open
Rockstein2 opened this issue Mar 17, 2023 · 1 comment
Open

Use more than one group for saned #6

Rockstein2 opened this issue Mar 17, 2023 · 1 comment

Comments

@Rockstein2
Copy link

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
Copy link
Author

Solved using sg command inside action script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant