Re: usb printer vs cups

2014-09-14 Thread Andriy Gapon
On 12/09/2014 23:12, Volodymyr Kostyrko wrote:
 On 12.09.2014 20:53, Andriy Gapon wrote:

  From my experience I think that cupsd executes backend tools with all uids 
 and
 gids set to cups and no supplementary groups.  In the case of USB printers 
 the
 backends need to access /dev/usbctl and /dev/usb/foobar that corresponds to a
 printer.  That means that the access to those devices must be somehow 
 granted to
 cups:cups.
 How do people solve this?  What kind of permissions / configuration do you 
 use?
 
 devfs

Yes, devfs.  So how exactly do you configure permissions, ownerships?

 P.S.
 Maybe I over-generalized the issue to all USB printers.  My personal 
 experience
 is with an HP printer handled by hplip / hplip-plugin.
 
 Personally I prefer using stock lpd for those, it can be easily integrated 
 with
 foomatic hpijs.
 


-- 
Andriy Gapon
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


usb printer vs cups

2014-09-12 Thread Andriy Gapon

From my experience I think that cupsd executes backend tools with all uids and
gids set to cups and no supplementary groups.  In the case of USB printers the
backends need to access /dev/usbctl and /dev/usb/foobar that corresponds to a
printer.  That means that the access to those devices must be somehow granted to
cups:cups.
How do people solve this?  What kind of permissions / configuration do you use?

P.S.
Maybe I over-generalized the issue to all USB printers.  My personal experience
is with an HP printer handled by hplip / hplip-plugin.
-- 
Andriy Gapon
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org

Re: usb printer vs cups

2014-09-12 Thread Volodymyr Kostyrko

On 12.09.2014 20:53, Andriy Gapon wrote:


 From my experience I think that cupsd executes backend tools with all uids and
gids set to cups and no supplementary groups.  In the case of USB printers the
backends need to access /dev/usbctl and /dev/usb/foobar that corresponds to a
printer.  That means that the access to those devices must be somehow granted to
cups:cups.
How do people solve this?  What kind of permissions / configuration do you use?


devfs


P.S.
Maybe I over-generalized the issue to all USB printers.  My personal experience
is with an HP printer handled by hplip / hplip-plugin.


Personally I prefer using stock lpd for those, it can be easily 
integrated with foomatic hpijs.


--
Sphinx of black quartz judge my vow.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org