From: bribbeck@exucom.com (Bob Ribbeck) Subject: Re: lpr, lpd (the thread that wouldn't die) Date: 24 Feb 1993 09:03:27 GMT
Jim Kaufman (jmk@kksys.com) wrote:
: Just so this thread regarding lpr, lpd etc. doesn't die a natural death,
: I want to throw in my 2 cents worth.
: 1) I can spool up print jobs which are then printed by the lpd daemon
: as root only. Note that I have a symlink for printcap in /etc to
: /usr/etc/printcap. I do not have a link for lpd. It works fine being
: in /usr/etc. Nor did I have an entry in usr/etc/inet or /usr/etc/net/
: services.
: 2) Since I get an error running lpr as non-root (cannot chown to /usr/spool/
: /lp0/tfa..., I thought I'd try the suggestions posted by Bob Ribbeck
: (bribbeck@exucom.com) [I won't repeat them here.]
: 3) The bottom line is they didn't work for me. I still can print as root,
: but non-privileged users get the unable to chown message from lpr.
: For those who have Bob's post (or Bob himself), I checked that I had
: *everything* set up as shown by him. I am curious as to what's happenin?
The non-root responce is the same as I was getting untill lpr,lprm,lpr were
given read permission for all "chmod a+r" make sure group and user have read
permission.
*******************************************************************************
I also just discovered the first nonroot user would lock others from being
able to change the /usr/spool/lp0/.seq file created by lpr. Doing a chmod
6755 lpr will fix this so lpr will run asif invoked by the owner for any user.