SUMMARY:lprm and users

From: Magnus Hultgren (mh@ts.ffv.se)
Date: Wed Nov 27 1996 - 03:41:10 CST


Hello Managers!

This is my original question.

> My users are not able to delete their own print-jobs (with lprm) from
> the que.
> Someone must do it as root. The printserver is a SunOS 4.1.3_U1 1.
>
> The symptom is that
> the /var/spool/printers/<printer>/AA???<job_id>??? fiel is always
> owned
> by root, however the lpq reflects the username.
>
> I have checked the permissions which I can think of
> (files/directories)
> for
> setuid/chmod permissions, which all appear to be correct.

Most of the mail i got was pleas for a SUMMARY, so here it is.:-)

There seems to be a bug in the lpd/lprm programs that makes removing
of print-jobs impossible if they have been send from another host than
the print-host.

Now over to the answers that i got. First i would thank the following
for swift responses:
John Reynolds
Magnus Bergman
Peter Allan

>From John i got the following:
----------------------------------------------------------------------
I have found in SunOS that when using another system as a print host,
the "lp" parameter in the client file needs to be "lp=" in order for
normal users to use lprm. That is :

post|lp:\
        :lp:sd=/var/spool/lp:\
        :lf=/var/spool/lp/log:\
        :rm=remote:rp=post:\

should be

post|lp:\
        :lp=:sd=/var/spool/lp:\
        :lf=/var/spool/lp/log:\
        :rm=remote:rp=post:\
-----------------------------------------------------------------------

But what seems to work best for me is this little sollution that i got
from Peter called rlprm. The best way to explain it is to look at it.
It can bee obtained this way:

> My code for rlprm (amd other stuff) can be got
> by mailing me with Subject: "send goodies" .
>
> -- Peter Allan peter.allan@aeat.co.uk

Thanx to everyone! Magnus...

 +------------------------- FFV TestSystems --------------------------+
 | Magnus Hultgren FFV TestSystems AB |
 | Box 47125 |
 | Internet: mailto:mh@ts.ffv.se S-100 74 Stockholm |
 | http://www.ts.ffv.se SWEDEN |
 | |
 | Phone Voice: +46 8 775 54 57 Fax: +46 8 19 00 75 |
 +--------------------------------------------------------------------+



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:16 CDT