Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"If I do not want others to quote me, I do not speak." -- Phil Wayne


computers / comp.os.linux.misc / CUPS problem

SubjectAuthor
* CUPS problemBob Tennent
+* Re: CUPS problemCarlos E. R.
|`* Re: CUPS problemBob Tennent
| +- Re: CUPS problemvallor
| `- Re: CUPS problemBob Tennent
+* Re: CUPS problemAndreas Kohlbach
|`* Re: CUPS problemBob Tennent
| `- Re: CUPS problemAndreas Kohlbach
+* Re: CUPS problemThe Natural Philosopher
|`* Re: CUPS problemBob Tennent
| `* Re: CUPS problemJim Jackson
|  `* Re: CUPS problemBob Tennent
|   +- Re: CUPS problemThe Natural Philosopher
|   `* Re: CUPS problemJim Jackson
|    `- Re: CUPS problemBob Tennent
`* Re: CUPS problemBob Tennent
 +- Re: CUPS problemThe Natural Philosopher
 `* Re: CUPS problemBob Tennent
  +* Re: CUPS problemBob Tennent
  |`* Re: CUPS problemBob Tennent
  | `* Re: CUPS problemBob Tennent
  |  +- Re: CUPS problemvallor
  |  +* Re: CUPS problemCarlos E. R.
  |  |`- Re: CUPS problemThe Natural Philosopher
  |  `- Re: CUPS problemBob Tennent
  +- Re: CUPS problemBob Tennent
  `- Re: CUPS problemAndreas Kohlbach

Pages:12
CUPS problem

<ugf75n$3pro$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13840&group=comp.os.linux.misc#13840

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: CUPS problem
Date: Sat, 14 Oct 2023 23:10:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <ugf75n$3pro$1@dont-email.me>
Reply-To: rdtennent@gmail.com
Injection-Date: Sat, 14 Oct 2023 23:10:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="53c6f4075467df2c5627273ced3852ea";
logging-data="124792"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2VZeBNq6g9v7VI/vXHndrZwNSTTosJz0="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:0mr+ojaAa4obcrTJfWymGp1VE5A=
 by: Bob Tennent - Sat, 14 Oct 2023 23:10 UTC

I can't print as an ordinary user to either a network
printer or to a shared USB printer connected to another host
on the local network. The Printer State message I get is

Idle - Unable to open print file: Permission denied

What's baffling is that I can print to both printers as the
superuser. Here's what I get after a failed attempt to print
by doing ls -l /var/spool/cups/*:

-r-------- 1 root root 331 Oct 14 18:51 a00711
-rw------- 1 root lp 1539 Oct 14 19:02 c00711
-rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001

and exactly the same after a successful print as root.

What is going on?

Re: CUPS problem

<kp0n6pFs3oqU3@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13842&group=comp.os.linux.misc#13842

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!news.nntp4.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E. R.)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 01:40:09 +0200
Lines: 25
Message-ID: <kp0n6pFs3oqU3@mid.individual.net>
References: <ugf75n$3pro$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net idyZzJS5g23L0IVDGWI3cghx9GhOT5AJVtsLXVYWV2k/JLXlnR
Cancel-Lock: sha1:PrhI0dGusSre9nhrXgEa41MqqwQ= sha256:2fy0ldpLkt0D+aj6JVPxbHR1Djz11tTVdxkJWtsIjDc=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA
In-Reply-To: <ugf75n$3pro$1@dont-email.me>
 by: Carlos E. R. - Sat, 14 Oct 2023 23:40 UTC

On 2023-10-15 01:10, Bob Tennent wrote:
> I can't print as an ordinary user to either a network
> printer or to a shared USB printer connected to another host
> on the local network. The Printer State message I get is
>
> Idle - Unable to open print file: Permission denied
>
> What's baffling is that I can print to both printers as the
> superuser. Here's what I get after a failed attempt to print
> by doing ls -l /var/spool/cups/*:
>
> -r-------- 1 root root 331 Oct 14 18:51 a00711
> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
>
> and exactly the same after a successful print as root.
>
> What is going on?

Check the cups logs.

--
Cheers,
Carlos E.R.

Re: CUPS problem

<ugfegk$549e$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13845&group=comp.os.linux.misc#13845

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 01:16:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <ugfegk$549e$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <kp0n6pFs3oqU3@mid.individual.net>
Reply-To: rdtennent@gmail.com
Injection-Date: Sun, 15 Oct 2023 01:16:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="53c6f4075467df2c5627273ced3852ea";
logging-data="168238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DQgdDH8h78iPhoAH+n0c5oIB2EOsRXOU="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:wBTAozFXIBaP0Au43yCAMDFRmRg=
 by: Bob Tennent - Sun, 15 Oct 2023 01:16 UTC

On Sun, 15 Oct 2023 01:40:09 +0200, Carlos E. R. wrote:
> On 2023-10-15 01:10, Bob Tennent wrote:
>> I can't print as an ordinary user to either a network
>> printer or to a shared USB printer connected to another host
>> on the local network. The Printer State message I get is
>>
>> Idle - Unable to open print file: Permission denied
>>
>> What's baffling is that I can print to both printers as the
>> superuser. Here's what I get after a failed attempt to print
>> by doing ls -l /var/spool/cups/*:
>>
>> -r-------- 1 root root 331 Oct 14 18:51 a00711
>> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
>> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
>>
>> and exactly the same after a successful print as root.
>>
>> What is going on?
>
> Check the cups logs.

No help there:

Unable to open print file: Permission denied
Backend returned status 1 (failed)

Re: CUPS problem

<ugffoo$2ncv$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13846&group=comp.os.linux.misc#13846

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 01:37:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <ugffoo$2ncv$3@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <kp0n6pFs3oqU3@mid.individual.net>
<ugfegk$549e$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 15 Oct 2023 01:37:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9ffdfa7c87c6bdfef22a490a1ad01d6c";
logging-data="89503"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LRJmoaXqC/ZA6OuNOXpMp"
Cancel-Lock: sha1:7itm7TyU4oX8AuzuVvJ/jhdJ//I=
X-Face: \}2`P"_@pS86<'EM:'b.Ml}8IuMK"pV"?FReF$'c.S%u9<Q#U*4QO)$l81M`{Q/n
XL'`91kd%N::LG:=*\35JS0prp\VJN^<s"b#bff@fA7]5lJA.jn,x_d%Md$,{.EZ
 by: vallor - Sun, 15 Oct 2023 01:37 UTC

On Sun, 15 Oct 2023 01:16:04 -0000 (UTC), Bob Tennent
<rdtennent@tennent.ca> wrote in <ugfegk$549e$1@dont-email.me>:

> On Sun, 15 Oct 2023 01:40:09 +0200, Carlos E. R. wrote:
> > On 2023-10-15 01:10, Bob Tennent wrote:
> >> I can't print as an ordinary user to either a network printer or to
> >> a shared USB printer connected to another host on the local network.
> >> The Printer State message I get is
> >>
> >> Idle - Unable to open print file: Permission denied
> >>
> >> What's baffling is that I can print to both printers as the
> >> superuser. Here's what I get after a failed attempt to print by
> >> doing ls -l /var/spool/cups/*:
> >>
> >> -r-------- 1 root root 331 Oct 14 18:51 a00711 -rw------- 1 root
> >> lp 1539 Oct 14 19:02 c00711 -rw-r----- 1 root lp 50966 Oct 14
> >> 18:51 d00711-001
> >>
> >> and exactly the same after a successful print as root.
> >>
> >> What is going on?
> >
> > Check the cups logs.
>
> No help there:
>
> Unable to open print file: Permission denied Backend returned status 1
> (failed)

You didn't mention your distribution.

I'm using Linux Mint 21.2, fresh install, and
my CUPS spool has these directories and permissions:

drwx--x--- 3 root lp 4096 Jul 11 12:20 /var/spool/cups
drwxrwx--T 2 root lp 4096 Jun 13 05:17 /var/spool/cups/tmp

And here is the version I'm running:
_ _ _ _ _ _ _
$ dpkg -l cups
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-
pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-===================-============-
===================================================================
ii cups 2.4.1op1-1ubuntu4.7 amd64 Common UNIX Printing
System(tm) - PPD/driver support, web interface
_ _ _ _ _ _ _

--
-v

Re: CUPS problem

<874jisljh5.fsf@usenet.ankman.de>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13847&group=comp.os.linux.misc#13847

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ank@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sat, 14 Oct 2023 22:15:02 -0400
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <874jisljh5.fsf@usenet.ankman.de>
References: <ugf75n$3pro$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="a6e86a034a3b9e16ede24041544290d4";
logging-data="311389"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RFmZPXXMCMZ8tsGMdp35P"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:391F7RaapxamxKJUi2FPOQYoYm4=
sha1:64DHKYdbS7kpbU3dI6iGgmijLwI=
X-No-Archive: Yes
 by: Andreas Kohlbach - Sun, 15 Oct 2023 02:15 UTC

On Sat, 14 Oct 2023 23:10:47 -0000 (UTC), Bob Tennent wrote:
>
> I can't print as an ordinary user to either a network
> printer or to a shared USB printer connected to another host
> on the local network. The Printer State message I get is
>
> Idle - Unable to open print file: Permission denied
>
> What's baffling is that I can print to both printers as the
> superuser. Here's what I get after a failed attempt to print
> by doing ls -l /var/spool/cups/*:
>
> -r-------- 1 root root 331 Oct 14 18:51 a00711
> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
>
> and exactly the same after a successful print as root.
>
> What is going on?

How does it look like between

<Location />

</Location>

in the /etc/cups/cupsd.conf ?
--
Andreas

Re: CUPS problem

<uggdbg$ef9h$4@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13852&group=comp.os.linux.misc#13852

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 11:02:24 +0100
Organization: A little, after lunch
Lines: 51
Message-ID: <uggdbg$ef9h$4@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 15 Oct 2023 10:02:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="94142632ea38eb12638d6c99e3df49b7";
logging-data="474417"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kwmg2DBL986Rl17/LeY4/WTLrEPRfo1c="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6mjufjDgSfDH/AE+/fK7581aSdY=
Content-Language: en-GB
In-Reply-To: <ugf75n$3pro$1@dont-email.me>
 by: The Natural Philosop - Sun, 15 Oct 2023 10:02 UTC

On 15/10/2023 00:10, Bob Tennent wrote:
> I can't print as an ordinary user to either a network
> printer or to a shared USB printer connected to another host
> on the local network. The Printer State message I get is
>
> Idle - Unable to open print file: Permission denied
>
> What's baffling is that I can print to both printers as the
> superuser. Here's what I get after a failed attempt to print
> by doing ls -l /var/spool/cups/*:
>
> -r-------- 1 root root 331 Oct 14 18:51 a00711
> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
>
> and exactly the same after a successful print as root.
>
> What is going on?
>
>
at a *guess* some directory used by CUPS is only permitted to do so by root.
propbaly in the /var/lib or /var/spool hierarchy.

$ ls -l /var/spool
total 24
drwxr-xr-x 2 root root 4096 Oct 8 2021 anacron
drwxr-xr-x 3 root root 4096 Jul 3 2021 cron
drwx--x--- 3 root lp 4096 Oct 11 23:59 cups
drwxr-xr-x 3 root root 4096 Jul 3 2021 libreoffice
lrwxrwxrwx 1 root root 7 Oct 8 2021 mail -> ../mail
drwxr-xr-x 20 root root 4096 Jan 6 2023 postfix
drwx------ 2 syslog adm 4096 Feb 11 2020 rsyslog

Note the perms on 'cups'

# ps -eadf | grep cups
root 241245 1 0 00:00 ? 00:00:00 /usr/sbin/cupsd -l
root 241246 1 0 00:00 ? 00:00:00 /usr/sbin/cups-browsed

check that cupsd is running with the right root perms..

--
“People believe certain stories because everyone important tells them,
and people tell those stories because everyone important believes them.
Indeed, when a conventional wisdom is at its fullest strength, one’s
agreement with that conventional wisdom becomes almost a litmus test of
one’s suitability to be taken seriously.”

Paul Krugman

Re: CUPS problem

<uggmga$gjum$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13857&group=comp.os.linux.misc#13857

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 12:38:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <uggmga$gjum$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <874jisljh5.fsf@usenet.ankman.de>
Reply-To: rdtennent@gmail.com
Injection-Date: Sun, 15 Oct 2023 12:38:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="53c6f4075467df2c5627273ced3852ea";
logging-data="544726"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19prF48cy+BTfCEVjHEF0ABAYvaUOPEg1E="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Fz2u/edKqjzHX4XC+c8QWYwtAIc=
 by: Bob Tennent - Sun, 15 Oct 2023 12:38 UTC

On Sat, 14 Oct 2023 22:15:02 -0400, Andreas Kohlbach wrote:
> On Sat, 14 Oct 2023 23:10:47 -0000 (UTC), Bob Tennent wrote:
>>
>> I can't print as an ordinary user to either a network
>> printer or to a shared USB printer connected to another host
>> on the local network. The Printer State message I get is
>>
>> Idle - Unable to open print file: Permission denied
>>
>> What's baffling is that I can print to both printers as the
>> superuser. Here's what I get after a failed attempt to print
>> by doing ls -l /var/spool/cups/*:
>>
>> -r-------- 1 root root 331 Oct 14 18:51 a00711
>> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
>> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
>>
>> and exactly the same after a successful print as root.
>>
>> What is going on?
>
> How does it look like between
>
><Location />
>
></Location>
>
> in the /etc/cups/cupsd.conf ?

<Location />
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
Order allow,deny
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>
<Location /admin/log>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>

Re: CUPS problem

<uggng3$gqm3$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13859&group=comp.os.linux.misc#13859

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 12:55:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <uggng3$gqm3$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <uggdbg$ef9h$4@dont-email.me>
Reply-To: rdtennent@gmail.com
Injection-Date: Sun, 15 Oct 2023 12:55:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="53c6f4075467df2c5627273ced3852ea";
logging-data="551619"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ZX8GctsyW+n4UsPpvUe+MgUsVo8INOHk="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:U80m4xN1oZPUcR1BrbLeuIZC2xs=
 by: Bob Tennent - Sun, 15 Oct 2023 12:55 UTC

On Sun, 15 Oct 2023 11:02:24 +0100, The Natural Philosopher wrote:
> On 15/10/2023 00:10, Bob Tennent wrote:
>> I can't print as an ordinary user to either a network
>> printer or to a shared USB printer connected to another host
>> on the local network. The Printer State message I get is
>>
>> Idle - Unable to open print file: Permission denied
>>
>> What's baffling is that I can print to both printers as the
>> superuser. Here's what I get after a failed attempt to print
>> by doing ls -l /var/spool/cups/*:
>>
>> -r-------- 1 root root 331 Oct 14 18:51 a00711
>> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
>> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
>>
>> and exactly the same after a successful print as root.
>>
>> What is going on?
>>
>>
> at a *guess* some directory used by CUPS is only permitted to do so by root.
> propbaly in the /var/lib or /var/spool hierarchy.
>

% ls -ld /var/spool/cups
drwx--x--- 3 root lp 4096 Oct 15 00:00 /var/spool/cups

# ps -eadf | grep cups
root 254733 1 0 00:00 ? 00:00:00 /usr/sbin/cupsd -l
lp 254735 254733 0 00:00 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://
root 254736 1 0 00:00 ? 00:00:00 /usr/sbin/cups-browsed
lp 254825 254733 0 00:00 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://

Re: CUPS problem

<slrnuinpf4.4vb.jj@iridium.wf32df>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13860&group=comp.os.linux.misc#13860

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jj@franjam.org.uk (Jim Jackson)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 13:15:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <slrnuinpf4.4vb.jj@iridium.wf32df>
References: <ugf75n$3pro$1@dont-email.me> <uggdbg$ef9h$4@dont-email.me>
<uggng3$gqm3$1@dont-email.me>
Injection-Date: Sun, 15 Oct 2023 13:15:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a814e8c9ee3da00b28d7c9c069497470";
logging-data="555328"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jyPjVCekd837G70Wm0El16TPt7PhnWt4="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:XhoMYm2q6OUSKU7wXyGZrAvoqeo=
 by: Jim Jackson - Sun, 15 Oct 2023 13:15 UTC

On 2023-10-15, Bob Tennent <rdtennent@tennent.ca> wrote:
> On Sun, 15 Oct 2023 11:02:24 +0100, The Natural Philosopher wrote:
> > On 15/10/2023 00:10, Bob Tennent wrote:
> >> I can't print as an ordinary user to either a network
> >> printer or to a shared USB printer connected to another host
> >> on the local network. The Printer State message I get is
> >>
> >> Idle - Unable to open print file: Permission denied
> >>
> >> What's baffling is that I can print to both printers as the
> >> superuser. Here's what I get after a failed attempt to print
> >> by doing ls -l /var/spool/cups/*:
> >>
> >> -r-------- 1 root root 331 Oct 14 18:51 a00711
> >> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
> >> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
> >>
> >> and exactly the same after a successful print as root.
> >>
> >> What is going on?
> >>
> >>
> > at a *guess* some directory used by CUPS is only permitted to do so by root.
> > propbaly in the /var/lib or /var/spool hierarchy.
> >
>
> % ls -ld /var/spool/cups
> drwx--x--- 3 root lp 4096 Oct 15 00:00 /var/spool/cups
>
> # ps -eadf | grep cups
> root 254733 1 0 00:00 ? 00:00:00 /usr/sbin/cupsd -l
> lp 254735 254733 0 00:00 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://
> root 254736 1 0 00:00 ? 00:00:00 /usr/sbin/cups-browsed
> lp 254825 254733 0 00:00 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://

You should be in the lp group
What is the result of (as user not root) ...

$ groups

Re: CUPS problem

<uggpug$hbkt$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13861&group=comp.os.linux.misc#13861

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 13:37:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <uggpug$hbkt$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <uggdbg$ef9h$4@dont-email.me>
<uggng3$gqm3$1@dont-email.me> <slrnuinpf4.4vb.jj@iridium.wf32df>
Reply-To: rdtennent@gmail.com
Injection-Date: Sun, 15 Oct 2023 13:37:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="53c6f4075467df2c5627273ced3852ea";
logging-data="568989"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WZTNLL7w3tdaOK+zSEsSQOh5ELll3OaY="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:MgaU8mlkvyiWyR5lonZyDDh6cBM=
 by: Bob Tennent - Sun, 15 Oct 2023 13:37 UTC

On Sun, 15 Oct 2023 13:15:16 -0000 (UTC), Jim Jackson wrote:
> On 2023-10-15, Bob Tennent <rdtennent@tennent.ca> wrote:
>> On Sun, 15 Oct 2023 11:02:24 +0100, The Natural Philosopher wrote:
>> > On 15/10/2023 00:10, Bob Tennent wrote:
>> >> I can't print as an ordinary user to either a network
>> >> printer or to a shared USB printer connected to another host
>> >> on the local network. The Printer State message I get is
>> >>
>> >> Idle - Unable to open print file: Permission denied
>> >>
>> >> What's baffling is that I can print to both printers as the
>> >> superuser. Here's what I get after a failed attempt to print
>> >> by doing ls -l /var/spool/cups/*:
>> >>
>> >> -r-------- 1 root root 331 Oct 14 18:51 a00711
>> >> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
>> >> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
>> >>
>> >> and exactly the same after a successful print as root.
>> >>
>> >> What is going on?
>> >>
>> >>
>> > at a *guess* some directory used by CUPS is only permitted
>> > to do so by root.
>> > propbaly in the /var/lib or /var/spool hierarchy.
>> >
>>
>> % ls -ld /var/spool/cups
>> drwx--x--- 3 root lp 4096 Oct 15 00:00 /var/spool/cups
>>
>> # ps -eadf | grep cups
>> root 254733 1 0 00:00 ? 00:00:00 /usr/sbin/cupsd -l
>> lp 254735 254733 0 00:00 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://
>> root 254736 1 0 00:00 ? 00:00:00 /usr/sbin/cups-browsed
>> lp 254825 254733 0 00:00 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://
>
> You should be in the lp group
> What is the result of (as user not root) ...
>
> $ groups

rdt adm lp cdrom sudo dip plugdev lpadmin sambashare

Re: CUPS problem

<uggq63$hdjo$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13862&group=comp.os.linux.misc#13862

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 14:41:23 +0100
Organization: A little, after lunch
Lines: 55
Message-ID: <uggq63$hdjo$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <uggdbg$ef9h$4@dont-email.me>
<uggng3$gqm3$1@dont-email.me> <slrnuinpf4.4vb.jj@iridium.wf32df>
<uggpug$hbkt$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 15 Oct 2023 13:41:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="94142632ea38eb12638d6c99e3df49b7";
logging-data="571000"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+AeDnt6VCNQPXJgk6EMcd/3UY5T3sdVM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hczG/Kp4pdE0a5I5LtT6k9EHIF4=
In-Reply-To: <uggpug$hbkt$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Sun, 15 Oct 2023 13:41 UTC

On 15/10/2023 14:37, Bob Tennent wrote:
> On Sun, 15 Oct 2023 13:15:16 -0000 (UTC), Jim Jackson wrote:
> > On 2023-10-15, Bob Tennent <rdtennent@tennent.ca> wrote:
> >> On Sun, 15 Oct 2023 11:02:24 +0100, The Natural Philosopher wrote:
> >> > On 15/10/2023 00:10, Bob Tennent wrote:
> >> >> I can't print as an ordinary user to either a network
> >> >> printer or to a shared USB printer connected to another host
> >> >> on the local network. The Printer State message I get is
> >> >>
> >> >> Idle - Unable to open print file: Permission denied
> >> >>
> >> >> What's baffling is that I can print to both printers as the
> >> >> superuser. Here's what I get after a failed attempt to print
> >> >> by doing ls -l /var/spool/cups/*:
> >> >>
> >> >> -r-------- 1 root root 331 Oct 14 18:51 a00711
> >> >> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
> >> >> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
> >> >>
> >> >> and exactly the same after a successful print as root.
> >> >>
> >> >> What is going on?
> >> >>
> >> >>
> >> > at a *guess* some directory used by CUPS is only permitted
> >> > to do so by root.
> >> > propbaly in the /var/lib or /var/spool hierarchy.
> >> >
> >>
> >> % ls -ld /var/spool/cups
> >> drwx--x--- 3 root lp 4096 Oct 15 00:00 /var/spool/cups
> >>
> >> # ps -eadf | grep cups
> >> root 254733 1 0 00:00 ? 00:00:00 /usr/sbin/cupsd -l
> >> lp 254735 254733 0 00:00 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://
> >> root 254736 1 0 00:00 ? 00:00:00 /usr/sbin/cups-browsed
> >> lp 254825 254733 0 00:00 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://
> >
> > You should be in the lp group
> > What is the result of (as user not root) ...
> >
> > $ groups
>
> rdt adm lp cdrom sudo dip plugdev lpadmin sambashare
>
similar to me and I *can* print

adm dialout cdrom sudo dip plugdev input lpadmin scanner sambashare

--
"First, find out who are the people you can not criticise. They are your
oppressors."
- George Orwell

Re: CUPS problem

<uggqde$hbkt$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13863&group=comp.os.linux.misc#13863

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 13:45:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <uggqde$hbkt$2@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <kp0n6pFs3oqU3@mid.individual.net>
<ugfegk$549e$1@dont-email.me>
Reply-To: rdtennent@gmail.com
Injection-Date: Sun, 15 Oct 2023 13:45:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="53c6f4075467df2c5627273ced3852ea";
logging-data="568989"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/09T8FRpO8UzYDIFNzi3p2yvrfMaoRCxc="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:RwultazZSL2S/IvRqIX/5MswJPE=
 by: Bob Tennent - Sun, 15 Oct 2023 13:45 UTC

On Sun, 15 Oct 2023 01:16:04 -0000 (UTC), Bob Tennent wrote:
> On Sun, 15 Oct 2023 01:40:09 +0200, Carlos E. R. wrote:
> > On 2023-10-15 01:10, Bob Tennent wrote:
> >> I can't print as an ordinary user to either a network
> >> printer or to a shared USB printer connected to another host
> >> on the local network. The Printer State message I get is
> >>
> >> Idle - Unable to open print file: Permission denied
> >>
> >> What's baffling is that I can print to both printers as the
> >> superuser. Here's what I get after a failed attempt to print
> >> by doing ls -l /var/spool/cups/*:
> >>
> >> -r-------- 1 root root 331 Oct 14 18:51 a00711
> >> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
> >> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
> >>
> >> and exactly the same after a successful print as root.
> >>
> >> What is going on?
> >
> > Check the cups logs.
>
> No help there:
>
> Unable to open print file: Permission denied
> Backend returned status 1 (failed)

There's more information in the Printer Report job attributes:

job-printer-state-reasons
['cups-ipp-conformance-failure-report',
'cups-ipp-missing-send-document']

Is that relevant?

Re: CUPS problem

<slrnuio4he.5b7.jj@iridium.wf32df>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13867&group=comp.os.linux.misc#13867

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jj@franjam.org.uk (Jim Jackson)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 16:24:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <slrnuio4he.5b7.jj@iridium.wf32df>
References: <ugf75n$3pro$1@dont-email.me> <uggdbg$ef9h$4@dont-email.me>
<uggng3$gqm3$1@dont-email.me> <slrnuinpf4.4vb.jj@iridium.wf32df>
<uggpug$hbkt$1@dont-email.me>
Injection-Date: Sun, 15 Oct 2023 16:24:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a814e8c9ee3da00b28d7c9c069497470";
logging-data="638701"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xpTPaWzZL6EppcgFUF5DFJLYROUo/kKU="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:NKEIykBcyYUCRb0xMbKUpBFSL8k=
 by: Jim Jackson - Sun, 15 Oct 2023 16:24 UTC

On 2023-10-15, Bob Tennent <rdtennent@tennent.ca> wrote:
> On Sun, 15 Oct 2023 13:15:16 -0000 (UTC), Jim Jackson wrote:
> > On 2023-10-15, Bob Tennent <rdtennent@tennent.ca> wrote:
> >> On Sun, 15 Oct 2023 11:02:24 +0100, The Natural Philosopher wrote:
> >> > On 15/10/2023 00:10, Bob Tennent wrote:
> >> >> I can't print as an ordinary user to either a network
> >> >> printer or to a shared USB printer connected to another host
> >> >> on the local network. The Printer State message I get is
> >> >>
> >> >> Idle - Unable to open print file: Permission denied
> >> >>
> >> >> What's baffling is that I can print to both printers as the
> >> >> superuser. Here's what I get after a failed attempt to print
> >> >> by doing ls -l /var/spool/cups/*:
> >> >>
> >> >> -r-------- 1 root root 331 Oct 14 18:51 a00711
> >> >> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
> >> >> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
> >> >>
> >> >> and exactly the same after a successful print as root.
> >> >>
> >> >> What is going on?
> >> >>
> >> >>
> >> > at a *guess* some directory used by CUPS is only permitted
> >> > to do so by root.
> >> > propbaly in the /var/lib or /var/spool hierarchy.
> >> >
> >>
> >> % ls -ld /var/spool/cups
> >> drwx--x--- 3 root lp 4096 Oct 15 00:00 /var/spool/cups

and what's the output of

ls -ld /var/spool/cups/tmp

sorry if that's already been asked? Should be something like

drwxrwx--T 2 root lp 4096 Oct 15 13:06 /var/spool/cups/tmp/

> >>
> >> # ps -eadf | grep cups
> >> root 254733 1 0 00:00 ? 00:00:00 /usr/sbin/cupsd -l
> >> lp 254735 254733 0 00:00 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://
> >> root 254736 1 0 00:00 ? 00:00:00 /usr/sbin/cups-browsed
> >> lp 254825 254733 0 00:00 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://
> >
> > You should be in the lp group
> > What is the result of (as user not root) ...
> >
> > $ groups
>
> rdt adm lp cdrom sudo dip plugdev lpadmin sambashare
>

Re: CUPS problem

<ughgg3$mdrl$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13869&group=comp.os.linux.misc#13869

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 20:02:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <ughgg3$mdrl$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <uggdbg$ef9h$4@dont-email.me>
<uggng3$gqm3$1@dont-email.me> <slrnuinpf4.4vb.jj@iridium.wf32df>
<uggpug$hbkt$1@dont-email.me> <slrnuio4he.5b7.jj@iridium.wf32df>
Reply-To: rdtennent@gmail.com
Injection-Date: Sun, 15 Oct 2023 20:02:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="53c6f4075467df2c5627273ced3852ea";
logging-data="735093"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187ZOzjxLaleLlkGhp6eh1dojXFD8dZDs4="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:RXA+A1iHtI8IV6rSzWj8bw+za4c=
 by: Bob Tennent - Sun, 15 Oct 2023 20:02 UTC

On Sun, 15 Oct 2023 16:24:14 -0000 (UTC), Jim Jackson wrote:
> On 2023-10-15, Bob Tennent <rdtennent@tennent.ca> wrote:
>> On Sun, 15 Oct 2023 13:15:16 -0000 (UTC), Jim Jackson wrote:
>> > On 2023-10-15, Bob Tennent <rdtennent@tennent.ca> wrote:
>> >> On Sun, 15 Oct 2023 11:02:24 +0100, The Natural Philosopher wrote:
>> >> > On 15/10/2023 00:10, Bob Tennent wrote:
>> >> >> I can't print as an ordinary user to either a network
>> >> >> printer or to a shared USB printer connected to another host
>> >> >> on the local network. The Printer State message I get is
>> >> >>
>> >> >> Idle - Unable to open print file: Permission denied
>> >> >>
>> >> >> What's baffling is that I can print to both printers as the
>> >> >> superuser. Here's what I get after a failed attempt to print
>> >> >> by doing ls -l /var/spool/cups/*:
>> >> >>
>> >> >> -r-------- 1 root root 331 Oct 14 18:51 a00711
>> >> >> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
>> >> >> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
>> >> >>
>> >> >> and exactly the same after a successful print as root.
>> >> >>
>> >> >> What is going on?
>> >> >>
>> >> >>
>> >> > at a *guess* some directory used by CUPS is only permitted
>> >> > to do so by root.
>> >> > propbaly in the /var/lib or /var/spool hierarchy.
>> >> >
>> >>
>> >> % ls -ld /var/spool/cups
>> >> drwx--x--- 3 root lp 4096 Oct 15 00:00 /var/spool/cups
>
> and what's the output of
>
> ls -ld /var/spool/cups/tmp

drwxrwx--T 2 root lp 4096 Oct 15 15:46 tmp/

>
> sorry if that's already been asked? Should be something like
>
> drwxrwx--T 2 root lp 4096 Oct 15 13:06 /var/spool/cups/tmp/

Re: CUPS problem

<878r83jq6x.fsf@usenet.ankman.de>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13870&group=comp.os.linux.misc#13870

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ank@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Sun, 15 Oct 2023 21:45:10 -0400
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <878r83jq6x.fsf@usenet.ankman.de>
References: <ugf75n$3pro$1@dont-email.me> <874jisljh5.fsf@usenet.ankman.de>
<uggmga$gjum$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="a1ae9f7a3df5140e8bc6d32e4e5dfedb";
logging-data="872307"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+I1o9U2muGYa3ID63aMoBV"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:0wO9dsiuYUwV/YcXe9yi/W5t8fs=
sha1:XhVTS8eXsi4FFRMOOqjKYaWKq5Y=
X-No-Archive: Yes
 by: Andreas Kohlbach - Mon, 16 Oct 2023 01:45 UTC

On Sun, 15 Oct 2023 12:38:34 -0000 (UTC), Bob Tennent wrote:
>
> On Sat, 14 Oct 2023 22:15:02 -0400, Andreas Kohlbach wrote:
> > On Sat, 14 Oct 2023 23:10:47 -0000 (UTC), Bob Tennent wrote:
> >>
> >> I can't print as an ordinary user to either a network
> >> printer or to a shared USB printer connected to another host
> >> on the local network. The Printer State message I get is
> >>
> >> Idle - Unable to open print file: Permission denied
> >>
> >> What's baffling is that I can print to both printers as the
> >> superuser. Here's what I get after a failed attempt to print
> >> by doing ls -l /var/spool/cups/*:
> >>
> >> -r-------- 1 root root 331 Oct 14 18:51 a00711
> >> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
> >> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
> >>
> >> and exactly the same after a successful print as root.
> >>
> >> What is going on?
> >
> > How does it look like between
> >
> ><Location />
> >
> ></Location>
> >
> > in the /etc/cups/cupsd.conf ?
>
> <Location />
> Order allow,deny
> Allow @LOCAL
> </Location>

Try adding

Allow localhost
Allow 192.168.0.*

and substitute 192.168.0.* with your local network's IP range.
--
Andreas

Re: CUPS problem

<ugr4pj$amhv$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13874&group=comp.os.linux.misc#13874

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Thu, 19 Oct 2023 11:43:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ugr4pj$amhv$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me>
Reply-To: rdtennent@gmail.com
Injection-Date: Thu, 19 Oct 2023 11:43:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="860622a2442ed8b9536682373bce9b26";
logging-data="350783"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Du6HbV6f47Nn/+OzDsP9wsSD5eyatvQw="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:EZfg4JTX9oEVYFlH+vKYXY0yrYM=
 by: Bob Tennent - Thu, 19 Oct 2023 11:43 UTC

On Sat, 14 Oct 2023 23:10:47 -0000 (UTC), Bob Tennent wrote:
> I can't print as an ordinary user to either a network
> printer or to a shared USB printer connected to another host
> on the local network. The Printer State message I get is
>
> Idle - Unable to open print file: Permission denied
>
> What's baffling is that I can print to both printers as the
> superuser. Here's what I get after a failed attempt to print
> by doing ls -l /var/spool/cups/*:
>
> -r-------- 1 root root 331 Oct 14 18:51 a00711
> -rw------- 1 root lp 1539 Oct 14 19:02 c00711
> -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
>
> and exactly the same after a successful print as root.
>
> What is going on?

It seems the problem was the permissions on

/usr/lib/cups/backend/ipp

which should be rwxr--r--.

Re: CUPS problem

<ugr4v8$aqer$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13875&group=comp.os.linux.misc#13875

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Thu, 19 Oct 2023 12:46:48 +0100
Organization: A little, after lunch
Lines: 33
Message-ID: <ugr4v8$aqer$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <ugr4pj$amhv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 19 Oct 2023 11:46:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="911f13481433d253c9b72b7330d6d322";
logging-data="354779"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Eisppp3znGFw+C2nZA/n9HQJzKYn1yH4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:sVZnqyKttaB4a8/sll9rz9qJVuQ=
Content-Language: en-GB
In-Reply-To: <ugr4pj$amhv$1@dont-email.me>
 by: The Natural Philosop - Thu, 19 Oct 2023 11:46 UTC

On 19/10/2023 12:43, Bob Tennent wrote:
> On Sat, 14 Oct 2023 23:10:47 -0000 (UTC), Bob Tennent wrote:
> > I can't print as an ordinary user to either a network
> > printer or to a shared USB printer connected to another host
> > on the local network. The Printer State message I get is
> >
> > Idle - Unable to open print file: Permission denied
> >
> > What's baffling is that I can print to both printers as the
> > superuser. Here's what I get after a failed attempt to print
> > by doing ls -l /var/spool/cups/*:
> >
> > -r-------- 1 root root 331 Oct 14 18:51 a00711
> > -rw------- 1 root lp 1539 Oct 14 19:02 c00711
> > -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
> >
> > and exactly the same after a successful print as root.
> >
> > What is going on?
>
> It seems the problem was the permissions on
>
> /usr/lib/cups/backend/ipp
>
> which should be rwxr--r--.

And who knows how or why THAT happened

--
Canada is all right really, though not for the whole weekend.

"Saki"

Re: CUPS problem

<ugrdtl$ctkc$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13877&group=comp.os.linux.misc#13877

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Thu, 19 Oct 2023 14:19:33 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <ugrdtl$ctkc$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <ugr4pj$amhv$1@dont-email.me>
Reply-To: rdtennent@gmail.com
Injection-Date: Thu, 19 Oct 2023 14:19:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="860622a2442ed8b9536682373bce9b26";
logging-data="423564"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sXIXYimbvsNTjoaFE9VWg1b0BcrDnPZo="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:484dsVqxBjaj1oc4JZiZlQgSJCg=
 by: Bob Tennent - Thu, 19 Oct 2023 14:19 UTC

On Thu, 19 Oct 2023 11:43:47 -0000 (UTC), Bob Tennent wrote:
> On Sat, 14 Oct 2023 23:10:47 -0000 (UTC), Bob Tennent wrote:
> > I can't print as an ordinary user to either a network
> > printer or to a shared USB printer connected to another host
> > on the local network. The Printer State message I get is
> >
> > Idle - Unable to open print file: Permission denied
> >
> > What's baffling is that I can print to both printers as the
> > superuser. Here's what I get after a failed attempt to print
> > by doing ls -l /var/spool/cups/*:
> >
> > -r-------- 1 root root 331 Oct 14 18:51 a00711
> > -rw------- 1 root lp 1539 Oct 14 19:02 c00711
> > -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
> >
> > and exactly the same after a successful print as root.
> >
> > What is going on?
>
> It seems the problem was the permissions on
>
> /usr/lib/cups/backend/ipp
>
> which should be rwxr--r--.

Actually has to be rwxr-xr-x.

Re: CUPS problem

<ugrlfl$eltf$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13879&group=comp.os.linux.misc#13879

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Thu, 19 Oct 2023 16:28:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <ugrlfl$eltf$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <ugr4pj$amhv$1@dont-email.me>
<ugrdtl$ctkc$1@dont-email.me> <op.2c2js8bva3w0dxdave@hodgins.homeip.net>
Reply-To: rdtennent@gmail.com
Injection-Date: Thu, 19 Oct 2023 16:28:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="860622a2442ed8b9536682373bce9b26";
logging-data="481199"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nGGYfOS69W5/FuQrSnLNcfSusnrPrkR0="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:fGdvwmyK7CZR55AI37sM8ZhtWfM=
 by: Bob Tennent - Thu, 19 Oct 2023 16:28 UTC

On Thu, 19 Oct 2023 11:54:34 -0400, David W. Hodgins wrote:
> On Thu, 19 Oct 2023 10:19:33 -0400, Bob Tennent <rdtennent@tennent.ca> wrote:
>
>> On Thu, 19 Oct 2023 11:43:47 -0000 (UTC), Bob Tennent wrote:
>> > On Sat, 14 Oct 2023 23:10:47 -0000 (UTC), Bob Tennent wrote:
>> > > I can't print as an ordinary user to either a network
>> > > printer or to a shared USB printer connected to another host
>> > > on the local network. The Printer State message I get is
>> > >
>> > > Idle - Unable to open print file: Permission denied
>> > >
>> > > What's baffling is that I can print to both printers as the
>> > > superuser. Here's what I get after a failed attempt to print
>> > > by doing ls -l /var/spool/cups/*:
>> > >
>> > > -r-------- 1 root root 331 Oct 14 18:51 a00711
>> > > -rw------- 1 root lp 1539 Oct 14 19:02 c00711
>> > > -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
>> > >
>> > > and exactly the same after a successful print as root.
>> > >
>> > > What is going on?
>> >
>> > It seems the problem was the permissions on
>> >
>> > /usr/lib/cups/backend/ipp
>> >
>> > which should be rwxr--r--.
>>
>> Actually has to be rwxr-xr-x.
>
> $ ll /usr/lib/cups/backend/|grep -v ^l
> total 1112
> -rwx------ 1 root root 15616 May 22 04:45 beh*
> -rwx------ 1 root root 37016 Apr 4 2021 boomaga*
> -rwxr-xr-x 1 root root 4152 Feb 12 2020 cups2pegg*
> -rwx------ 1 root root 15488 May 22 04:45 cups-brf*
> -rwx------ 1 root root 142244 Feb 15 2020 cups-pdf*
> -rwxr--r-- 1 root root 23640 Sep 26 03:26 dnssd*
> -rwxr--r-- 1 root root 27664 Sep 26 03:26 failover*
> -rwxr-xr-x 1 root root 468472 Feb 26 2021 gutenprint53+usb*
> -rwxr-xr-x 1 root root 24088 Jul 1 2022 hp*
> -rwxr-xr-x 1 root root 9221 Jul 1 2022 hpfax*
> -rwx------ 1 root root 24008 May 22 04:45 implicitclass*
> -rwxr--r-- 1 root root 85416 Sep 26 03:26 ipp*
> -rwxr--r-- 1 root root 52520 Sep 26 03:26 lpd*
> -rwxr-xr-x 1 root root 3144 Jan 19 2021 mga_backend*
> -rwxr-xr-x 1 root root 4730 Dec 31 2020 mtink*
> -rwxr-xr-x 1 root root 1077 Jun 13 2013 ncp*
> -rwxr-xr-x 1 root root 4598 Sep 26 03:26 nprint*
> -rwx------ 1 root root 23992 May 22 04:45 parallel*
> -rwx------ 1 root root 19736 May 22 04:45 serial*
> -rwxr-xr-x 1 root root 31912 Sep 26 03:26 snmp*
> -rwxr-xr-x 1 root root 44280 Sep 26 03:26 socket*
> -rwxr-xr-x 1 root root 40104 Sep 26 03:26 usb*
>
>
> The cupsd process runs as root.

On my system, execute permission for users on ipp seems to
be necessary.

Re: CUPS problem

<ugrv7f$h113$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13884&group=comp.os.linux.misc#13884

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Thu, 19 Oct 2023 19:14:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <ugrv7f$h113$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <ugr4pj$amhv$1@dont-email.me>
<ugrdtl$ctkc$1@dont-email.me> <op.2c2js8bva3w0dxdave@hodgins.homeip.net>
Reply-To: rdtennent@gmail.com
Injection-Date: Thu, 19 Oct 2023 19:14:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="860622a2442ed8b9536682373bce9b26";
logging-data="558115"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Hy8yFuVrjTpx8OpwJu0S4olLDjLMiAKE="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:KX5MKEuxwbIwVfTgdgQFyyzMPY8=
 by: Bob Tennent - Thu, 19 Oct 2023 19:14 UTC

On Thu, 19 Oct 2023 11:54:34 -0400, David W. Hodgins wrote:
> On Thu, 19 Oct 2023 10:19:33 -0400, Bob Tennent <rdtennent@tennent.ca> wrote:
>
>> On Thu, 19 Oct 2023 11:43:47 -0000 (UTC), Bob Tennent wrote:
>> > On Sat, 14 Oct 2023 23:10:47 -0000 (UTC), Bob Tennent wrote:
>> > > I can't print as an ordinary user to either a network
>> > > printer or to a shared USB printer connected to another host
>> > > on the local network. The Printer State message I get is
>> > >
>> > > Idle - Unable to open print file: Permission denied
>> > >
>> > > What's baffling is that I can print to both printers as the
>> > > superuser. Here's what I get after a failed attempt to print
>> > > by doing ls -l /var/spool/cups/*:
>> > >
>> > > -r-------- 1 root root 331 Oct 14 18:51 a00711
>> > > -rw------- 1 root lp 1539 Oct 14 19:02 c00711
>> > > -rw-r----- 1 root lp 50966 Oct 14 18:51 d00711-001
>> > >
>> > > and exactly the same after a successful print as root.
>> > >
>> > > What is going on?
>> >
>> > It seems the problem was the permissions on
>> >
>> > /usr/lib/cups/backend/ipp
>> >
>> > which should be rwxr--r--.
>>
>> Actually has to be rwxr-xr-x.
>
> $ ll /usr/lib/cups/backend/|grep -v ^l
> total 1112
> -rwx------ 1 root root 15616 May 22 04:45 beh*
> -rwx------ 1 root root 37016 Apr 4 2021 boomaga*
> -rwxr-xr-x 1 root root 4152 Feb 12 2020 cups2pegg*
> -rwx------ 1 root root 15488 May 22 04:45 cups-brf*
> -rwx------ 1 root root 142244 Feb 15 2020 cups-pdf*
> -rwxr--r-- 1 root root 23640 Sep 26 03:26 dnssd*
> -rwxr--r-- 1 root root 27664 Sep 26 03:26 failover*
> -rwxr-xr-x 1 root root 468472 Feb 26 2021 gutenprint53+usb*
> -rwxr-xr-x 1 root root 24088 Jul 1 2022 hp*
> -rwxr-xr-x 1 root root 9221 Jul 1 2022 hpfax*
> -rwx------ 1 root root 24008 May 22 04:45 implicitclass*
> -rwxr--r-- 1 root root 85416 Sep 26 03:26 ipp*
> -rwxr--r-- 1 root root 52520 Sep 26 03:26 lpd*
> -rwxr-xr-x 1 root root 3144 Jan 19 2021 mga_backend*
> -rwxr-xr-x 1 root root 4730 Dec 31 2020 mtink*
> -rwxr-xr-x 1 root root 1077 Jun 13 2013 ncp*
> -rwxr-xr-x 1 root root 4598 Sep 26 03:26 nprint*
> -rwx------ 1 root root 23992 May 22 04:45 parallel*
> -rwx------ 1 root root 19736 May 22 04:45 serial*
> -rwxr-xr-x 1 root root 31912 Sep 26 03:26 snmp*
> -rwxr-xr-x 1 root root 44280 Sep 26 03:26 socket*
> -rwxr-xr-x 1 root root 40104 Sep 26 03:26 usb*
>
>
> The cupsd process runs as root.

On my system, execute permission for users on ipp seems to
be necessary.

Re: CUPS problem

<87fs26duc2.fsf@usenet.ankman.de>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13885&group=comp.os.linux.misc#13885

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ank@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Thu, 19 Oct 2023 20:13:33 -0400
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <87fs26duc2.fsf@usenet.ankman.de>
References: <ugf75n$3pro$1@dont-email.me> <ugr4pj$amhv$1@dont-email.me>
<ugrdtl$ctkc$1@dont-email.me>
<op.2c2js8bva3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="a5e89cf53a30babd0960f80ac19bdbc4";
logging-data="699700"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NzeVtkdl+ZbREmccOcg7G"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:J9tx6LnifwRxnXa+a1J7ACGBrDA=
sha1:W9RSHazK/WwTb8A81zgy2086fr4=
X-No-Archive: Yes
 by: Andreas Kohlbach - Fri, 20 Oct 2023 00:13 UTC

On Thu, 19 Oct 2023 11:54:34 -0400, David W. Hodgins wrote:
>
> $ ll

~$ ll
-bash: ll: command not found

ll might be an alias for "ls -l" on your system.
--
Andreas

Re: CUPS problem

<ugsmtj$qd7p$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13886&group=comp.os.linux.misc#13886

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Fri, 20 Oct 2023 01:59:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <ugsmtj$qd7p$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <ugr4pj$amhv$1@dont-email.me>
<ugrdtl$ctkc$1@dont-email.me> <op.2c2js8bva3w0dxdave@hodgins.homeip.net>
<ugrlfl$eltf$1@dont-email.me> <op.2c26aauia3w0dxdave@hodgins.homeip.net>
Reply-To: rdtennent@gmail.com
Injection-Date: Fri, 20 Oct 2023 01:59:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bdbce2caae93ceafaa1537e867d78232";
logging-data="865529"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8DqWq3VJ+kvg0yBDATp9MblPdKDEbsGY="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:9PWtQSmgJlFYcGEuwJEPio00HQs=
 by: Bob Tennent - Fri, 20 Oct 2023 01:59 UTC

On Thu, 19 Oct 2023 20:00:00 -0400, David W. Hodgins wrote:
> On Thu, 19 Oct 2023 12:28:37 -0400, Bob Tennent <rdtennent@tennent.ca> wrote:
>> On my system, execute permission for users on ipp seems to
>> be necessary.
>
> The user doesn't run /usr/lib/cups/backend/ipp. That's run by cupsd.
>
> For example, boomaga and ipp backends have the permissions ...
> -rwx------ 1 root root 37016 Apr 4 2021 /usr/lib/cups/backend/boomaga*
> -rwxr--r-- 1 root root 85416 Sep 26 03:26 /usr/lib/cups/backend/ipp*

Then why with those permissions on ipp do I get

"Could not start IPP Backend (/usr/lib/cups/backend/ipp): 13 Permission denied"

which I don't get if I chmod +x /usr/lib/cups/backend/ipp

Re: CUPS problem

<ugsn9k$qjct$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13887&group=comp.os.linux.misc#13887

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rdtennent@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Fri, 20 Oct 2023 02:05:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <ugsn9k$qjct$1@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <ugr4pj$amhv$1@dont-email.me>
<ugrdtl$ctkc$1@dont-email.me> <op.2c2js8bva3w0dxdave@hodgins.homeip.net>
<ugrlfl$eltf$1@dont-email.me> <op.2c26aauia3w0dxdave@hodgins.homeip.net>
<ugsmtj$qd7p$1@dont-email.me>
Reply-To: rdtennent@gmail.com
Injection-Date: Fri, 20 Oct 2023 02:05:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bdbce2caae93ceafaa1537e867d78232";
logging-data="871837"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/etxs5oL79M0FVJkgWjUHoyIExeZGSHQ="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:f8ubdA3pKw0g59p4mh1L1bFscNk=
 by: Bob Tennent - Fri, 20 Oct 2023 02:05 UTC

On Fri, 20 Oct 2023 01:59:15 -0000 (UTC), Bob Tennent wrote:
> On Thu, 19 Oct 2023 20:00:00 -0400, David W. Hodgins wrote:
> > On Thu, 19 Oct 2023 12:28:37 -0400, Bob Tennent <rdtennent@tennent.ca>
> > wrote:
> >> On my system, execute permission for users on ipp seems to
> >> be necessary.
> >
> > The user doesn't run /usr/lib/cups/backend/ipp. That's run by cupsd.
> >
> > For example, boomaga and ipp backends have the permissions ...
> > -rwx------ 1 root root 37016 Apr 4 2021 /usr/lib/cups/backend/boomaga*
> > -rwxr--r-- 1 root root 85416 Sep 26 03:26 /usr/lib/cups/backend/ipp*
>
> Then why with those permissions on ipp do I get
>
> "Could not start IPP Backend (/usr/lib/cups/backend/ipp):
> 13 Permission denied"
>
> which I don't get if I chmod +x /usr/lib/cups/backend/ipp
>

Furthermore, I've just checked two other Linux Mint systems
and ipp has permissions rwxr-xr-x in both.

Are you a cups developer? Why are you so sure of this?

Re: CUPS problem

<ugt0no$q6fb$8@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13888&group=comp.os.linux.misc#13888

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Fri, 20 Oct 2023 04:46:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <ugt0no$q6fb$8@dont-email.me>
References: <ugf75n$3pro$1@dont-email.me> <ugr4pj$amhv$1@dont-email.me>
<ugrdtl$ctkc$1@dont-email.me> <op.2c2js8bva3w0dxdave@hodgins.homeip.net>
<ugrlfl$eltf$1@dont-email.me> <op.2c26aauia3w0dxdave@hodgins.homeip.net>
<ugsmtj$qd7p$1@dont-email.me> <ugsn9k$qjct$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 20 Oct 2023 04:46:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="841da9ba2c07a8862765a63b364b9959";
logging-data="858603"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Yfx8EJk53feBGoOA7r9qM"
Cancel-Lock: sha1:dC8Lka5xhfU2XxtZq1xdD5W6kGg=
X-Face: \}2`P"_@pS86<'EM:'b.Ml}8IuMK"pV"?FReF$'c.S%u9<Q#U*4QO)$l81M`{Q/n
XL'`91kd%N::LG:=*\35JS0prp\VJN^<s"b#bff@fA7]5lJA.jn,x_d%Md$,{.EZ
 by: vallor - Fri, 20 Oct 2023 04:46 UTC

On Fri, 20 Oct 2023 02:05:40 -0000 (UTC), Bob Tennent
<rdtennent@tennent.ca> wrote in <ugsn9k$qjct$1@dont-email.me>:

> On Fri, 20 Oct 2023 01:59:15 -0000 (UTC), Bob Tennent wrote:
> > On Thu, 19 Oct 2023 20:00:00 -0400, David W. Hodgins wrote:
> > > On Thu, 19 Oct 2023 12:28:37 -0400, Bob Tennent <rdtennent@tennent.ca>
> > > wrote:
> > >> On my system, execute permission for users on ipp seems to
> > >> be necessary.
> > >
> > > The user doesn't run /usr/lib/cups/backend/ipp. That's run by cupsd.
> > >
> > > For example, boomaga and ipp backends have the permissions ...
> > > -rwx------ 1 root root 37016 Apr 4 2021 /usr/lib/cups/backend/boomaga*
> > > -rwxr--r-- 1 root root 85416 Sep 26 03:26 /usr/lib/cups/backend/ipp*
> >
> > Then why with those permissions on ipp do I get
> >
> > "Could not start IPP Backend (/usr/lib/cups/backend/ipp):
> > 13 Permission denied"
> >
> > which I don't get if I chmod +x /usr/lib/cups/backend/ipp
> >
>
> Furthermore, I've just checked two other Linux Mint systems
> and ipp has permissions rwxr-xr-x in both.
>
> Are you a cups developer? Why are you so sure of this?

I'm not a cups developer, but I had an idea:

System processes running as "root" on Linux often drop permissions
for security. It's possible cups forks a process for the backend,
and calls setgid()/setuid() to run the backend process
with limited permissions. (ipp/ipp).

But that's just a guess. Too burned-out right now to dig
into the source and look, or dig through strace output...

HTH

--
-v

Re: CUPS problem

<kpf8e8Frsq5U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13894&group=comp.os.linux.misc#13894

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E. R.)
Newsgroups: comp.os.linux.misc
Subject: Re: CUPS problem
Date: Fri, 20 Oct 2023 14:00:08 +0200
Lines: 35
Message-ID: <kpf8e8Frsq5U1@mid.individual.net>
References: <ugf75n$3pro$1@dont-email.me> <ugr4pj$amhv$1@dont-email.me>
<ugrdtl$ctkc$1@dont-email.me> <op.2c2js8bva3w0dxdave@hodgins.homeip.net>
<ugrlfl$eltf$1@dont-email.me> <op.2c26aauia3w0dxdave@hodgins.homeip.net>
<ugsmtj$qd7p$1@dont-email.me> <ugsn9k$qjct$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net SXp2PK5utNghYhjoHp2DkwCM0N2F5wdDjz6gjqV2wNJTCMsIDp
Cancel-Lock: sha1:bCDwypYjuvRglU4Sqd3YqPXRmIU= sha256:UiQ0oMvcf5jthcyuH/yxw3gMzJp+9rHds6HmJU9V0cA=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA, es-ANY
In-Reply-To: <ugsn9k$qjct$1@dont-email.me>
 by: Carlos E. R. - Fri, 20 Oct 2023 12:00 UTC

On 2023-10-20 04:05, Bob Tennent wrote:
> On Fri, 20 Oct 2023 01:59:15 -0000 (UTC), Bob Tennent wrote:
> > On Thu, 19 Oct 2023 20:00:00 -0400, David W. Hodgins wrote:
> > > On Thu, 19 Oct 2023 12:28:37 -0400, Bob Tennent <rdtennent@tennent.ca>
> > > wrote:
> > >> On my system, execute permission for users on ipp seems to
> > >> be necessary.
> > >
> > > The user doesn't run /usr/lib/cups/backend/ipp. That's run by cupsd.
> > >
> > > For example, boomaga and ipp backends have the permissions ...
> > > -rwx------ 1 root root 37016 Apr 4 2021 /usr/lib/cups/backend/boomaga*
> > > -rwxr--r-- 1 root root 85416 Sep 26 03:26 /usr/lib/cups/backend/ipp*
> >
> > Then why with those permissions on ipp do I get
> >
> > "Could not start IPP Backend (/usr/lib/cups/backend/ipp):
> > 13 Permission denied"
> >
> > which I don't get if I chmod +x /usr/lib/cups/backend/ipp
> >
>
> Furthermore, I've just checked two other Linux Mint systems
> and ipp has permissions rwxr-xr-x in both.

I checked my laptop with openSUSE Leap:

Laicolasse:~ # l /usr/lib/cups/backend/ipp
-rwx------ 1 root root 80016 Sep 12 14:19 /usr/lib/cups/backend/ipp*
Laicolasse:~ #

--
Cheers,
Carlos E.R.

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor