From: Hendrik G. Seliger (hank@Blimp)
Date: 02/12/93


From: hank@Blimp (Hendrik G. Seliger)
Subject: Re: Has anyone been able to use lpr as non-root
Date: Fri, 12 Feb 1993 07:08:51 GMT

bribbeck@exucom.com (Bob Ribbeck) writes:
:
: I've been able to use lpr,lpq.etc as root but can't get it to work for
: non-root users. It says it can't rename the tf****** to cf***********
: If the deamon created the file why can't it rename it ???? Then to make
: matters worse it won't let the non-root user lprm the files. Even if
: spool/lp0 has 777 permission ???? Is this a bug or what? Does the lp0
: need to be in the path??? Mail etc. doesn't require path access to work.
: Has anyone really made lpr,lp,lpq,lprm work correctly?? any help would
: be welcomed by all of us trying to setup linux for a small invironment.

Well, I'm not yet sure if it will work forever, but today my configuration
seems okay. I have made all lp*-programs owner/group daemon, made them
set-gid, and have also made all lp*-directories and files in /usr/spool
belong to user/group daemon with write-permissions for the group (probably
everything could be owned by root as long as the group settings are daemon).

The lock-files will then be owned by root (as the first lpd will be
started by init), but as long as the other programs can write into
the directories, this does no harm). This setup works fine for everyone;
remote printing to my second linux-box works fine, too.

I'm trying to figure out more details about this, so if you're still
experiencing problems, feel free to contact me.

Hank.