public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] cups - print job owner
@ 2013-05-07 15:48 Joseph
  2013-05-07 20:46 ` Mick
  0 siblings, 1 reply; 7+ 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] 7+ messages in thread

* Re: [gentoo-user] cups - print job owner
  2013-05-07 15:48 [gentoo-user] cups - print job owner Joseph
@ 2013-05-07 20:46 ` Mick
  2013-05-07 23:14   ` Joseph
  2013-05-08  1:48   ` [gentoo-user] " walt
  0 siblings, 2 replies; 7+ 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] 7+ messages in thread

* Re: [gentoo-user] cups - print job owner
  2013-05-07 20:46 ` Mick
@ 2013-05-07 23:14   ` Joseph
  2013-05-08  1:48   ` [gentoo-user] " walt
  1 sibling, 0 replies; 7+ 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] 7+ messages in thread

* [gentoo-user] Re: cups - print job owner
  2013-05-07 20:46 ` Mick
  2013-05-07 23:14   ` Joseph
@ 2013-05-08  1:48   ` walt
  2013-05-08  6:47     ` Alan McKinnon
  1 sibling, 1 reply; 7+ messages in thread
From: walt @ 2013-05-08  1:48 UTC (permalink / raw
  To: gentoo-user

On 05/07/2013 01:46 PM, Mick wrote:

> $ cat /etc/group | grep lp

http://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat

 ;)


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Re: cups - print job owner
  2013-05-08  1:48   ` [gentoo-user] " walt
@ 2013-05-08  6:47     ` Alan McKinnon
  2013-05-08  7:10       ` Dale
  2013-05-08  8:53       ` Neil Bothwick
  0 siblings, 2 replies; 7+ messages in thread
From: Alan McKinnon @ 2013-05-08  6:47 UTC (permalink / raw
  To: gentoo-user

On 08/05/2013 03:48, walt wrote:
> On 05/07/2013 01:46 PM, Mick wrote:
> 
>> $ cat /etc/group | grep lp
> 
> http://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat

In code, yes.

Whilst debugging on the command line, no. That's just nitpicking.

I call this the "Useless use of calling people on the useless use of cat"

It is FAR more efficient to up-arrow, backspace, type new search string,
press enter, when debugging....



-- 
Alan McKinnon
alan.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Re: cups - print job owner
  2013-05-08  6:47     ` Alan McKinnon
@ 2013-05-08  7:10       ` Dale
  2013-05-08  8:53       ` Neil Bothwick
  1 sibling, 0 replies; 7+ messages in thread
From: Dale @ 2013-05-08  7:10 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon wrote:
> On 08/05/2013 03:48, walt wrote:
>> On 05/07/2013 01:46 PM, Mick wrote:
>>
>>> $ cat /etc/group | grep lp
>> http://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat
> In code, yes.
>
> Whilst debugging on the command line, no. That's just nitpicking.
>
> I call this the "Useless use of calling people on the useless use of cat"
>
> It is FAR more efficient to up-arrow, backspace, type new search string,
> press enter, when debugging....
>
>
>


I keep looking for a like button to click.  :/ 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how you interpreted my words!



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Re: cups - print job owner
  2013-05-08  6:47     ` Alan McKinnon
  2013-05-08  7:10       ` Dale
@ 2013-05-08  8:53       ` Neil Bothwick
  1 sibling, 0 replies; 7+ messages in thread
From: Neil Bothwick @ 2013-05-08  8:53 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 619 bytes --]

On Wed, 08 May 2013 08:47:40 +0200, Alan McKinnon wrote:

> >> $ cat /etc/group | grep lp  
> > 
> > http://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat  
> 
> In code, yes.
> 
> Whilst debugging on the command line, no. That's just nitpicking.
> 
> I call this the "Useless use of calling people on the useless use of
> cat"
> 
> It is FAR more efficient to up-arrow, backspace, type new search string,
> press enter, when debugging....

grep /etc/group -e lp

Should keep both of you happy :P


-- 
Neil Bothwick

[unwieldy legal disclaimer would go here - feel free to type your own]

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-05-08  8:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-07 15:48 [gentoo-user] cups - print job owner Joseph
2013-05-07 20:46 ` Mick
2013-05-07 23:14   ` Joseph
2013-05-08  1:48   ` [gentoo-user] " walt
2013-05-08  6:47     ` Alan McKinnon
2013-05-08  7:10       ` Dale
2013-05-08  8:53       ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox