From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 08:52:44 2018 Received: (at 33105) by debbugs.gnu.org; 24 Oct 2018 12:52:44 +0000 Received: from localhost ([127.0.0.1]:39202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFIeS-00006s-I6 for submit@debbugs.gnu.org; Wed, 24 Oct 2018 08:52:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFIeR-00006h-Jf for 33105@debbugs.gnu.org; Wed, 24 Oct 2018 08:52:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFIeH-0006w5-Jl for 33105@debbugs.gnu.org; Wed, 24 Oct 2018 08:52:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFIe9-0006uO-3j; Wed, 24 Oct 2018 08:52:27 -0400 Received: from dhcp-64-71.ens-lyon.fr ([140.77.64.71]:45930 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gFIe8-0001PA-FX; Wed, 24 Oct 2018 08:52:25 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Oleg Pykhalov Subject: Re: bug#33105: cups Can't create temporary file or stopped "Filter failed" References: <87woqcea7q.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 24 Oct 2018 14:52:22 +0200 In-Reply-To: <87woqcea7q.fsf@gmail.com> (Oleg Pykhalov's message of "Sat, 20 Oct 2018 21:36:57 +0300") Message-ID: <877ei75wxl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33105 Cc: 33105@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) 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.