> From [EMAIL PROTECTED] Thu Feb 14 09:24:24 2002 > Date: Thu, 14 Feb 2002 16:21:57 GMT > From: Toby Blake <[EMAIL PROTECTED]> > Subject: LPRng: running lprng as non-root user > To: [EMAIL PROTECTED] > > Hi, > > Quick question - is it possible to run lprng (both client and server > parts) as a non-root user? > > Obviously I'd need to change the lpd port number and directories > used. > > I need to do this on a temporary basis in order to test some things > out on a machine that's already running lpd, etc. > > Thanks > Toby Blake > University of Edinburgh
Yes, you can. The easiest way to to do this is to set the lpd_port value in the /etc/lpd.conf file to something like 2000. The 'testing mode option' (-DLPD_CONF) allows you to specify the lpd.conf file to be used in the LPD_CONF environment variable. You can now set this up in (say) /usr/local/etc/lpd.conf and set the LPD_CONF=/usr/local/etc/lpd.conf Now you can start up lpd as a normal user. HOWEVER: if you try to run this as root it will not let you... this is a security loophole so it will croak. Part of the LPRng regression tests use this to run about 3 print spoolers at once and fling jobs back and forth. Note: you can also use lpr -Ppr@hostname%port to send a job to the LPD server listening on port 'port'. And there are other ways as well... but that is enough for now... :-) Patrick Patrick Powell Astart Technologies, [EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D, Network and System San Diego, CA 92123 Consulting 858-874-6543 FAX 858-279-8424 LPRng - Print Spooler (http://www.lprng.com) ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
