Skip to content

sane: fix multifunctional devices rights conflict with cups#5036

Merged
lucabrunox merged 1 commit intoNixOS:masterfrom
abbradar:sane-mfd-fix
Nov 19, 2014
Merged

sane: fix multifunctional devices rights conflict with cups#5036
lucabrunox merged 1 commit intoNixOS:masterfrom
abbradar:sane-mfd-fix

Conversation

@abbradar
Copy link
Member

Another part of #4857 -- this makes MFDs work both with cups and sane. Without this they were being assigned to 'scanner' group, which prevented CUPS from working with them at all. This is how it's fixed on Arch Linux IIRC. Tested.

@lucabrunox
Copy link
Contributor

What's the other relevant udev rule that should have more priority? Just curiosity, seems fine otherwise.

@abbradar
Copy link
Member Author

50-udev-default.rules. It sets lp as an owner group for all USB printers.

@lucabrunox
Copy link
Contributor

And why there's no problem with having group lp instead of scanner?

@abbradar
Copy link
Member Author

libsane works with access rights of an end user, while cupsd is a daemon which runs as cups/lp. This can't be fixed by adding cups to needed group because cupsd internally doesn't set additional groups when dropping privileges. I have a patch which fixes that, but that would be much more intrusive than just to change ownership like that.

lucabrunox pushed a commit that referenced this pull request Nov 19, 2014
sane: fix multifunctional devices rights conflict with cups
@lucabrunox lucabrunox merged commit 44628e9 into NixOS:master Nov 19, 2014
@lucabrunox
Copy link
Contributor

Ok thanks :)

@abbradar abbradar deleted the sane-mfd-fix branch November 19, 2014 16:29
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

Successfully merging this pull request may close these issues.

2 participants