CUPS / LPR Access Control
Hello, I am trying to find where LPR / CUPS do their access control to enable the wwwrun user to print documents. As this deals with access control I believe this is the correct place to ask this question. A little background on what I am trying to accomplish. I am designing a strictly internal web based data collection and reporting system. I have a PHP script that on certain conditions will print a file to a printer. In testing I am doing su -c 'cat testdoc | lpr -Pprinter' - normal_user which works fine and su -c 'cat testdoc | lpr -Pprinter' - wwwrun which does not work at all. Looking through cups admin at http://127.0.0.1:631/ shows all the print jobs for normal users and none of the print jobs for wwwrun. Thank You. Bill Miller jrmiller@cbnlottery.com
Hello, On Apr 25 10:14 Bill Miller Jr wrote (shortened):
su -c 'cat testdoc | lpr -Pprinter' - wwwrun does not work at all.
Does su - su - wwwrun && echo OK || echo FAILED work for you? For me it doesn't by default because see /etc/passwd: wwwrun:...:/bin/false To which shell should the command 'cat testdoc | lpr -Pprinter' be passed? Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsmeix@suse.de 90409 Nuernberg, Germany WWW: http://www.suse.de/
participants (2)
-
Bill Miller Jr
-
Johannes Meixner