From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#33105: cups Can't create temporary file or stopped "Filter failed" Date: Wed, 24 Oct 2018 14:52:22 +0200 Message-ID: <877ei75wxl.fsf@gnu.org> References: <87woqcea7q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFIep-0000Z4-V8 for bug-guix@gnu.org; Wed, 24 Oct 2018 08:53:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFIek-0007JR-GZ for bug-guix@gnu.org; Wed, 24 Oct 2018 08:53:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFIek-0007JF-Ah for bug-guix@gnu.org; Wed, 24 Oct 2018 08:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFIek-00007P-6R for bug-guix@gnu.org; Wed, 24 Oct 2018 08:53:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87woqcea7q.fsf@gmail.com> (Oleg Pykhalov's message of "Sat, 20 Oct 2018 21:36:57 +0300") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Oleg Pykhalov Cc: 33105@debbugs.gnu.org Hi Oleg, Oleg Pykhalov skribis: > I read gnu/services/cups.scm and found that the /var/spool/cups/ > directory should be owned by =E2=80=98lp=E2=80=99 user: > > (define %cups-activation > ;; Activation gexp. > (with-imported-modules '((guix build utils)) > #~(begin > (use-modules (guix build utils)) > (define (mkdir-p/perms directory owner perms) > (mkdir-p directory) > (chown "/var/run/cups" (passwd:uid owner) (passwd:gid owner)) > ;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > (chmod directory perms)) > ;; =E2=80=A6 > (let ((user (getpwnam "lp"))) > ;; =E2=80=A6 > (mkdir-p/perms "/var/spool/cups/tmp" user #o755) ; <---------- > ;; =E2=80=A6 > )))) > > > > Maybe we should make /var/spool/cups/tmp directory owned by =E2=80=98lp= =E2=80=99 user, > too? WDYT? > > Test page was printed successfully with: > > $ sudo ls -ld /var/spool/cups/tmp > drwxr-xr-x 2 lp lp 4096 Oct 20 21:20 /var/spool/cups/tmp I don=E2=80=99t know the answer :-), but from what you=E2=80=99re saying, i= t looks like making /var/spool/cups/tmp =E2=80=98lp=E2=80=99-owned is the right thing. If it works for you, I guess you can go ahead! Ludo=E2=80=99.