Path: ...!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: 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: References: 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= Bytes: 2393 On 2023-10-15, Bob Tennent 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