X-Loop: help-debbugs@HIDDEN Subject: bug#33105: cups Can't create temporary file or stopped "Filter failed" Resent-From: Oleg Pykhalov <go.wigust@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sat, 20 Oct 2018 18:38:02 +0000 Resent-Message-ID: <handler.33105.B.15400606629283 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 33105 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 33105 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix <bug-guix@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.15400606629283 (code B ref -1); Sat, 20 Oct 2018 18:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Oct 2018 18:37:42 +0000 Received: from localhost ([127.0.0.1]:33439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gDw86-0002Pf-Cf for submit <at> debbugs.gnu.org; Sat, 20 Oct 2018 14:37:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <go.wigust@HIDDEN>) id 1gDw85-0002PQ-1U for submit <at> debbugs.gnu.org; Sat, 20 Oct 2018 14:37:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1gDw7x-0007S7-Ld for submit <at> debbugs.gnu.org; Sat, 20 Oct 2018 14:37:35 -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,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60315) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1gDw7w-0007Rx-FR for submit <at> debbugs.gnu.org; Sat, 20 Oct 2018 14:37:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1gDw7v-0004xw-Mm for bug-guix@HIDDEN; Sat, 20 Oct 2018 14:37:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1gDw7q-0007Qc-1R for bug-guix@HIDDEN; Sat, 20 Oct 2018 14:37:31 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:44458) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1gDw7p-0007MK-QC for bug-guix@HIDDEN; Sat, 20 Oct 2018 14:37:25 -0400 Received: by mail-pg1-x534.google.com with SMTP id w3-v6so1630242pgs.11 for <bug-guix@HIDDEN>; Sat, 20 Oct 2018 11:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=jepwfX0MP2684vZZSNhB8saOsSx1WfJ1oFv3I8DJ9jo=; b=X/b8rsJAq5SY8nxAZ4wAjLYXNwvBNo029B6JoJ3DsHE7BFNFlv8lL6FD/NocyVa8mM ZPZXlpNsDp3JOARMX8C0gbcmKtxKx/A5cO6Leus3i0mQ2b0YUG8y8mxzLy6fE7DwFwzW M9S5xku5IxDCeVtr3RNXLbvc/cEtj7AJcKhlVtj/+R9K25rMijbt2T5lJ9kBXia6daVo V0F9VK3GWPR/GhWEtIX5bgVGvVOwJeeoUUF5BtUrmGVWE3eG8udKkrfGskKRUhpiXikE plgAt8iVqreRLGi824bTz73bJm5RQ665cG+DyLFbKxOpztQvKW89eap/x5G5TFT23x8j uTTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=jepwfX0MP2684vZZSNhB8saOsSx1WfJ1oFv3I8DJ9jo=; b=ZGyNiTko0HAWv7JXCwOHOQ2TMPgcdolOw+mvKj1KhQU3iRGOfB99nwmWJ8+HMxjXRW mOOgKdxVI52+Jqe6i4ntaiVvxzHYO5w9YmBbHkX30Tvb8/mBdfkscTNcOqj00Jv/ZiWl 6/h8gHHZCyY4hq/qJnNSNg1iaAhaeFR3AjPhmaKJe3FOyRi0s1yKr8r5BFEWkbWgFaeG hM2dm9AjmshkpaQJ3k0lUjjWBZmNJ0bCdvCEXuDpm9QCe2aoCnTeLCqgA/dX3BohNve+ OnwQv1jDo257Wk9gqadIm4T8uaNIUkRXnJ6v76De/umgfuB/rI3ff5t67ssV+rMj8Su3 aZKw== X-Gm-Message-State: ABuFfogqiUGp8QejXk0+Fdmua2SNBBy/thD9cWrz4G9a7TnQPt2K3eOE fyFoMdBDV8UViQvBCayQQeaL+XLDmc0= X-Google-Smtp-Source: ACcGV607b6hLaT4bH/ugPTllYU+FwTW8BUjoFwIHGfM2G2EheEdKuWoApf4/UCBw3ZKhbiSZjtgd4w== X-Received: by 2002:a63:c508:: with SMTP id f8-v6mr37345794pgd.412.1540060629540; Sat, 20 Oct 2018 11:37:09 -0700 (PDT) Received: from magnolia ([178.70.240.150]) by smtp.gmail.com with ESMTPSA id e3-v6sm35001633pgc.71.2018.10.20.11.37.06 for <bug-guix@HIDDEN> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 Oct 2018 11:37:08 -0700 (PDT) From: Oleg Pykhalov <go.wigust@HIDDEN> Date: Sat, 20 Oct 2018 21:36:57 +0300 Message-ID: <87woqcea7q.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Guix, I've spotted a bug in CUPS service =E2=80=9CCan't create temporary file=E2= =80=9D. If I gave =E2=80=98765=E2=80=99 permissions to =E2=80=98/var/spool/cups/tmp/=E2= =80=99 directory then an error is =E2=80=9Cstopped "Filter failed"=E2=80=9D. =E2=80=98777=E2=80=99 for /v= ar/spool/cups/tmp/ is required to print a test page via CUPS WEB interface. 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: =2D-8<---------------cut here---------------start------------->8--- (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 )))) =2D-8<---------------cut here---------------end--------------->8--- 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: =2D-8<---------------cut here---------------start------------->8--- $ sudo ls -ld /var/spool/cups/tmp drwxr-xr-x 2 lp lp 4096 Oct 20 21:20 /var/spool/cups/tmp =2D-8<---------------cut here---------------end--------------->8--- From=20cups-files.conf(5) man page: TempDir directory Specifies the directory where short-term temporary files are stored. The default is "/var/spool/cups/tmp". User username Specifies the user name or ID that is used when running external programs. The default is "lp". Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlvLdckACgkQckbhHGm3 lWnP5hAAkX/am+yKTOKUJagZnW1LhDN5PUr46ONAx25Te71/uFTWdwtCLC/dqrU5 SBZlqsFacohnNPpyGbPI0PJGeghe8f3dE1u7o/MKf0wk6/rJ37nAfy3wawAipKbF N8WzOpOMFlt8HzTFAena1F68zKOvFJfxvtcgYSU7SKi4DvXUizF77lTuyvkOXv0i lPuzP9iO8+8ki/iB5bantqB7Nz1BujGZxLvMpxg5XDZfWh24cQEKsXLhuWAvFd6x bLGYjTdiOgfXJVGKJWA9OueV1lNu6Z1PuEYAxCvjWiUOED5sF1NJGWDZto5vHJJs MTZRBkmQ9+qkIJgzJria5/45iJTHEcoh5YkpmgjnR0bgv6uZVRcC1YQmNlAOw1oF R3Y0v+v7DS0CXZrAfeOWFTH5e4Az40bcCHzIkRQuMQbFZ3hEmCcCGP/sux4qZpB8 05acpj+D7QzEf8aMRdf6Azhawvn7NqBigcsTOofAccOUfdtOoXioYskQCc5q3/ve AX1GEMnn8TLElqEWVa/IThrYGOoCZzVWtlljeVQqhOgEbgSGR8hFcN3RBsfbGrqF qUcslGAFo2rffFPwi1Dm8PJIERmWf3GaPZL18Zo2TSsQI5AoNcDbgtAwkIsqzzwW P5WMw6NWERei0PoGJrufZV/Pie2ykkCw7BP6ORHTGDnW2+Ttzt8= =IhwM -----END PGP SIGNATURE----- --=-=-=--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Oleg Pykhalov <go.wigust@HIDDEN> Subject: bug#33105: Acknowledgement (cups Can't create temporary file or stopped "Filter failed") Message-ID: <handler.33105.B.15400606629283.ack <at> debbugs.gnu.org> References: <87woqcea7q.fsf@HIDDEN> X-Gnu-PR-Message: ack 33105 X-Gnu-PR-Package: guix Reply-To: 33105 <at> debbugs.gnu.org Date: Sat, 20 Oct 2018 18:38:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 33105 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 33105: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33105 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#33105: cups Can't create temporary file or stopped "Filter failed" Resent-From: Efraim Flashner <efraim@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sun, 21 Oct 2018 06:54:01 +0000 Resent-Message-ID: <handler.33105.B33105.15401048144258 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 33105 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Oleg Pykhalov <go.wigust@HIDDEN> Cc: 33105 <at> debbugs.gnu.org Received: via spool by 33105-submit <at> debbugs.gnu.org id=B33105.15401048144258 (code B ref 33105); Sun, 21 Oct 2018 06:54:01 +0000 Received: (at 33105) by debbugs.gnu.org; 21 Oct 2018 06:53:34 +0000 Received: from localhost ([127.0.0.1]:33735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gE7cE-00016b-5y for submit <at> debbugs.gnu.org; Sun, 21 Oct 2018 02:53:34 -0400 Received: from flashner.co.il ([178.62.234.194]:42316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <efraim@HIDDEN>) id 1gE7cC-00016O-2H for 33105 <at> debbugs.gnu.org; Sun, 21 Oct 2018 02:53:32 -0400 Received: from localhost (unknown [141.226.10.13]) by flashner.co.il (Postfix) with ESMTPSA id 1B4D24020D; Sun, 21 Oct 2018 06:53:26 +0000 (UTC) Date: Sun, 21 Oct 2018 09:53:25 +0300 From: Efraim Flashner <efraim@HIDDEN> Message-ID: <20181021065325.GD1102@macbook41> References: <87woqcea7q.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oj4kGyHlBMXGt3Le" Content-Disposition: inline In-Reply-To: <87woqcea7q.fsf@HIDDEN> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --oj4kGyHlBMXGt3Le Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 20, 2018 at 09:36:57PM +0300, Oleg Pykhalov wrote: > Hello Guix, >=20 > I've spotted a bug in CUPS service =E2=80=9CCan't create temporary file= =E2=80=9D. If I > gave =E2=80=98765=E2=80=99 permissions to =E2=80=98/var/spool/cups/tmp/= =E2=80=99 directory then an error > is =E2=80=9Cstopped "Filter failed"=E2=80=9D. =E2=80=98777=E2=80=99 for = /var/spool/cups/tmp/ is > required to print a test page via CUPS WEB interface. >=20 >=20 > 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: > --8<---------------cut here---------------start------------->8--- > (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 > )))) > --8<---------------cut here---------------end--------------->8--- >=20 >=20 > Maybe we should make /var/spool/cups/tmp directory owned by =E2=80=98lp= =E2=80=99 user, > too? WDYT? currently /var/spool/cups is root:lp, my first thought is to change it to lp:lpadmin (not sure where I got lpadmin from) and make it 775. >=20 > Test page was printed successfully with: > --8<---------------cut here---------------start------------->8--- > $ sudo ls -ld /var/spool/cups/tmp > drwxr-xr-x 2 lp lp 4096 Oct 20 21:20 /var/spool/cups/tmp > --8<---------------cut here---------------end--------------->8--- >=20 >=20 > From cups-files.conf(5) man page: >=20 > TempDir directory > Specifies the directory where short-term temporary files are > stored. The default is "/var/spool/cups/tmp". >=20 > User username > Specifies the user name or ID that is used when running external > programs. The default is "lp". >=20 >=20 > Oleg. --=20 Efraim Flashner <efraim@HIDDEN> =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --oj4kGyHlBMXGt3Le Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlvMImEACgkQQarn3Mo9 g1EkyhAAuXY7ObMZltDWHC9ybKhy+33GMB+4jl+qtMPzS1Pz/G8p7HWU2KD43AoC lffo4wWtZifKLvIpQAntK5t8OltvwFNfnWwpm2VRqaBuRNOWYj/lD4pXwKLbWoAo sGEOTvwVmqwsw6wZlXXiQjinIIl6GvTjMO2UCg3vvAhEfLlKgGjCXsrVKuKsZlni BOJI8DXo8an0FfYSEZEA6fqhojR7pnuQqP84wO81y3KkygptE/LdhDWcFfXaPvbw pnsV1Hfc51S3SyRwuF8xHJlkeMW6BXD9awCnL7pgDUI/p+GRfSGyadl24qgmLYoz t+9PqjJAkamQDZrcSIyMvKHD4cdN61uKWFu5opGFPsEIXNLCk+hCkz7N1FV26Cz1 kBhAaQf6+Hd/qHpF1lBL0yvSwcGsqbre5CWAzLXoN7Io1V6K7X6w2TSHacQ+eHWY m/4MEDZzEXhJ0UASl7ijLs/D81hKezdTHEYhmQ/bDqK13uWcxDsJ/nw+Qt/OKyDR iZ2dCJihWE09+/mC8JgTW73fTDVQgdjVjR08/6SXCc8R1AXFwAs9xnvhbMp9VjD2 S79WiRSQWqFjVO2jQBxG5fNEQY0ZHJqC9YTSW3sDmwkQG1JxIwE5jfbRRRxP4Azp CxhjmvFz7T2lB9o7s4zMEPQD9w8cpVDaqIwK08OHjFWmwwuMrzA= =I8ls -----END PGP SIGNATURE----- --oj4kGyHlBMXGt3Le--
X-Loop: help-debbugs@HIDDEN Subject: bug#33105: cups Can't create temporary file or stopped "Filter failed" Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Wed, 24 Oct 2018 12:53:02 +0000 Resent-Message-ID: <handler.33105.B33105.1540385564430 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 33105 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Oleg Pykhalov <go.wigust@HIDDEN> Cc: 33105 <at> debbugs.gnu.org Received: via spool by 33105-submit <at> debbugs.gnu.org id=B33105.1540385564430 (code B ref 33105); Wed, 24 Oct 2018 12:53:02 +0000 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gFIeS-00006s-I6 for submit <at> 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 <ludo@HIDDEN>) id 1gFIeR-00006h-Jf for 33105 <at> 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 <ludo@HIDDEN>) id 1gFIeH-0006w5-Jl for 33105 <at> 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 <ludo@HIDDEN>) 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 <ludo@HIDDEN>) id 1gFIe8-0001PA-FX; Wed, 24 Oct 2018 08:52:25 -0400 From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87woqcea7q.fsf@HIDDEN> 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@HIDDEN> (Oleg Pykhalov's message of "Sat, 20 Oct 2018 21:36:57 +0300") Message-ID: <877ei75wxl.fsf@HIDDEN> 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-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -6.0 (------) Hi Oleg, Oleg Pykhalov <go.wigust@HIDDEN> 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.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.