* [gentoo-user] cups - print job owner
@ 2013-05-07 15:48 Joseph
2013-05-07 20:46 ` Mick
0 siblings, 1 reply; 5+ messages in thread
From: Joseph @ 2013-05-07 15:48 UTC (permalink / raw
To: gentoo-user
When I submit print job to my network printer cups display on the web-page:
▼ ID ▼ Name User Size Pages
Brother-2907 Unknown Withheld 42k
So I can not delete the print job as I'm not the owner.
How to control the ownership of the print job?
In cupsd.conf I have:
...
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
...
I could make a short-cat and add:
Allow from my_ip_address
but I don't think this is a good solution.
--
Joseph
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] cups - print job owner
2013-05-07 15:48 Joseph
@ 2013-05-07 20:46 ` Mick
2013-05-07 23:14 ` Joseph
0 siblings, 1 reply; 5+ messages in thread
From: Mick @ 2013-05-07 20:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 868 bytes --]
On Tuesday 07 May 2013 16:48:42 Joseph wrote:
> When I submit print job to my network printer cups display on the web-page:
>
> ▼ ID ▼ Name User Size Pages
> Brother-2907 Unknown Withheld 42k
>
> So I can not delete the print job as I'm not the owner.
> How to control the ownership of the print job?
>
> In cupsd.conf I have:
> ...
> # Only the owner or an administrator can cancel or authenticate a job...
> <Limit Cancel-Job CUPS-Authenticate-Job>
> Require user @OWNER @SYSTEM
> Order deny,allow
> </Limit>
> ...
>
> I could make a short-cat and add:
> Allow from my_ip_address
>
> but I don't think this is a good solution.
Try something like this:
$ cat /etc/group | grep lp
lp:x:7:lp,michael
lpadmin:x:106:
That should allow you to cancel print jobs, otherwise sudo cancel.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] cups - print job owner
2013-05-07 20:46 ` Mick
@ 2013-05-07 23:14 ` Joseph
0 siblings, 0 replies; 5+ messages in thread
From: Joseph @ 2013-05-07 23:14 UTC (permalink / raw
To: gentoo-user
On 05/07/13 21:46, Mick wrote:
>On Tuesday 07 May 2013 16:48:42 Joseph wrote:
>> When I submit print job to my network printer cups display on the web-page:
>>
>> ▼ ID ▼ Name User Size Pages
>> Brother-2907 Unknown Withheld 42k
>>
>> So I can not delete the print job as I'm not the owner.
>> How to control the ownership of the print job?
>>
>> In cupsd.conf I have:
>> ...
>> # Only the owner or an administrator can cancel or authenticate a job...
>> <Limit Cancel-Job CUPS-Authenticate-Job>
>> Require user @OWNER @SYSTEM
>> Order deny,allow
>> </Limit>
>> ...
>>
>> I could make a short-cat and add:
>> Allow from my_ip_address
>>
>> but I don't think this is a good solution.
>
>Try something like this:
>
>$ cat /etc/group | grep lp
>lp:x:7:lp,michael
>lpadmin:x:106:
>
>That should allow you to cancel print jobs, otherwise sudo cancel.
>
>--
>Regards,
>Mick
That is what I have:
$ cat /etc/group | grep lp
lp:x:7:lp,joseph
lpadmin:x:106:
I still can not delete print job unless I'm root.
--
Joseph
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] cups - print job owner
@ 2013-05-17 13:32 Joseph
2013-05-17 17:12 ` Joseph
0 siblings, 1 reply; 5+ messages in thread
From: Joseph @ 2013-05-17 13:32 UTC (permalink / raw
To: gentoo-user
Does anybody know which file control print job ownership?
I have:
drwx--x--- 3 root lp /var/spool/cups
-rw------- 1 root lp 910 May 17 06:52 c02986
-rw-r----- 1 root lp 391367 May 17 06:51 d02986-001
so being in "lp" group doesn't help me at all, as only root can delete the print job.
--
Joseph
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] cups - print job owner
2013-05-17 13:32 [gentoo-user] cups - print job owner Joseph
@ 2013-05-17 17:12 ` Joseph
0 siblings, 0 replies; 5+ messages in thread
From: Joseph @ 2013-05-17 17:12 UTC (permalink / raw
To: gentoo-user
On 05/17/13 07:32, Joseph wrote:
>Does anybody know which file control print job ownership?
>
>I have:
>drwx--x--- 3 root lp /var/spool/cups
>-rw------- 1 root lp 910 May 17 06:52 c02986
>-rw-r----- 1 root lp 391367 May 17 06:51 d02986-001
>
>so being in "lp" group doesn't help me at all, as only root can delete the print job.
>
>--
>Joseph
I think it is a bug in cups based on red-hat forum posting:
https://bugzilla.redhat.com/show_bug.cgi?id=432029
Additional info:
the permissions within the package as per spec are:
%dir %attr(0755,root,sys) /etc/cups
%dir %attr(1700,root,sys) /var/spool/cups/tmp
Those lines should probably read:
%dir %attr(0775,root,sys) /etc/cups
%dir %attr(1770,root,sys) /var/spool/cups/tmp
as cups-1.1.22rc1/scheduler/conf.c:497
chmod(ServerRoot, 0775);
and conf.c:551:
chmod(TempDir, 01770);
--
Joseph
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-05-17 17:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-17 13:32 [gentoo-user] cups - print job owner Joseph
2013-05-17 17:12 ` Joseph
-- strict thread matches above, loose matches on Subject: below --
2013-05-07 15:48 Joseph
2013-05-07 20:46 ` Mick
2013-05-07 23:14 ` Joseph
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox