mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 23:48:39 +01:00
sane-backends: run (xinetd) saned as non-root
saned requires write access scanner USB bus for its process and to usblp/bind in order to rebind multifunctional printers back to usblp (for printing with p910nd). A hotplug script monitor new USB devices for scanners. Scanners are detected by searching /usr/share/sane/<vendor>-<backend>.usbid for the device product_id. The package saned creates user saned:scanners. Access is granted to group scanners. The default xinetd conf was updated to run as saned:scanner. sane-daemon pkg now has a postinst trigger that runs udevtrigger for granting perms where there are connected scanners during installation. Existing hotplug scripts from hplip were removed. They were mostly useless. Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
This commit is contained in:
@@ -7,8 +7,7 @@ service sane-port
|
||||
socket_type = stream
|
||||
port = 6566
|
||||
wait = no
|
||||
user = root
|
||||
# user = saned
|
||||
user = saned
|
||||
group = scanner
|
||||
server = /usr/sbin/saned
|
||||
disable = yes
|
||||
|
||||
Reference in New Issue
Block a user