On Mon, May 19, 2003 at 07:43:29AM +0100, Alan Chandler wrote: > Hash: SHA1 > > On Monday 19 May 2003 4:36 am, Jerome Acks Jr wrote: > > On Sun, May 18, 2003 at 11:55:40PM +0100, Alan Chandler wrote: > ... > > > I have devfsd installed, and its given the /dev/printers/0 owner and > > > group rights of root.lp > > > > Correct setting > > $ ls -l /dev/printers/0 > > crw-rw---- 1 root lp 6, 0 Dec 31 1969 /dev/printers/0 > > > > > its given /dev/lp0 symlink the owner.group of root.root and mod > > > lr_xr_xr_x > > > > Correct setting > > $ ls -l /dev/lp0 > > lr-xr-xr-x 1 root root 10 May 18 20:45 /dev/lp0 -> > > printers/0 > > > > > the configuration file for cupsd gives owner.group of lp.sys > > > > My cupsd.conf has lp.sys as the user and group the server runs under. > > So why is cups allowed to write to /dev/lp0? the permissions on > /dev/printers/0 don't give write access to user lp.sys? According to cups documentation, user.group in cupsd.conf specifies the user and group that filter programs run as. During a print job, cupsd is running as root, and filter program is running as lp: $ ps aux | grep [c]up root 405 0.0 2.2 6048 2928 ? S May18 0:03 /usr/sbin/cupsd lp 7769 0.0 0.8 2476 1128 ? S 21:05 0:00 /bin/sh /usr/lib/cups/filter/pstoraster 432 dad (stdin) 1 lp 7772 5.5 4.8 13512 6156 ? S 21:05 0:03 /usr/bin/gs-esp -dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOMEDIAATTRS -sDEVICE=cups -sstdout=%stderr -sOUTPUTFILE=%stdout - -- Jerome
Attachment:
pgpHbiwg6uF04.pgp
Description: PGP signature