From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eETjMs6WRV+6LgAA0tVLHw (envelope-from ) for ; Tue, 25 Aug 2020 22:55:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EDTJLs6WRV+pfAAA1q6Kng (envelope-from ) for ; Tue, 25 Aug 2020 22:55:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 621149403D2 for ; Tue, 25 Aug 2020 22:55:10 +0000 (UTC) Received: from localhost ([::1]:36696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAhqP-0004Wa-Bi for larch@yhetil.org; Tue, 25 Aug 2020 18:55:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAhqI-0004WR-Sv for bug-guix@gnu.org; Tue, 25 Aug 2020 18:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53066) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAhqI-0007Rr-Jp for bug-guix@gnu.org; Tue, 25 Aug 2020 18:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAhqI-0002Rl-J4 for bug-guix@gnu.org; Tue, 25 Aug 2020 18:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42859: guix lint: permission denied for cve checker Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 25 Aug 2020 22:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42859 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jonathan Brielmaier Received: via spool by 42859-submit@debbugs.gnu.org id=B42859.15983960859377 (code B ref 42859); Tue, 25 Aug 2020 22:55:02 +0000 Received: (at 42859) by debbugs.gnu.org; 25 Aug 2020 22:54:45 +0000 Received: from localhost ([127.0.0.1]:36379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAhq1-0002RB-3I for submit@debbugs.gnu.org; Tue, 25 Aug 2020 18:54:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAhpz-0002Qx-Bu for 42859@debbugs.gnu.org; Tue, 25 Aug 2020 18:54:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48160) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAhpt-0007RL-Re; Tue, 25 Aug 2020 18:54:37 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35348 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kAhpt-0000ht-AZ; Tue, 25 Aug 2020 18:54:37 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <11047e71-4c2a-1ee3-e2c2-75e182f2faa7@web.de> <20200814182757.GA23337@jasmine.lan> <335a65e3-53a5-8c5b-2388-12553e3236b9@web.de> Date: Wed, 26 Aug 2020 00:54:34 +0200 In-Reply-To: <335a65e3-53a5-8c5b-2388-12553e3236b9@web.de> (Jonathan Brielmaier's message of "Sun, 16 Aug 2020 21:58:21 +0200") Message-ID: <87ft8awd3p.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42859@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: uXSuB6+0TqDC Jonathan Brielmaier skribis: > On 14.08.20 20:27, Leo Famulari wrote: >> On Fri, Aug 14, 2020 at 02:26:03PM +0200, Jonathan Brielmaier wrote: >>> When running guix lint with the cve checker I get the following error: >>> >>> ``` >>> guix lint icecat --checkers=3Dcve >>> fetching CVE database for 2020...view1 [cve]... >> [...] >>> In procedure mkdir: Permission denied >>> ``` >> >> Do you know which directory that is? You can run the comand with `strace >> -f` to check. > > Ah thanks for that hint! > > [...] > [pid 20797] mkdir("/home/jonathan/.cache/guix", 0777) =3D -1 EEXIST (Die > Datei existiert bereits) > [pid 20797] mkdir("/home/jonathan/.cache/guix/http", 0777) =3D -1 EACCES > (Keine Berechtigung) > [pid 20797] write(2, "Backtrace:\n", 11Backtrace: > ) =3D 11 > [...] > > ll /home/jonathan/.cache/guix > insgesamt 8 > drwxr-xr-x 3 root root 4096 17. Jun 00:00 authentication/ > drwxr-xr-x 6 root root 4096 7. Jun 11:53 checkouts/ > > So i wonder now why it's owned by root and not by jonathan:users like > the rest (apart from guile) in ~/.cache/ Perhaps you previously ran =E2=80=9Csudo guix lint -c cve=E2=80=9D or somet= hing? Commit 4c5edee1ef2aff2b8f3782ccb03723a6428bf600 leads to a clearer error message pointing at the faulty directory permissions. I think we=E2=80=99re done? Thanks, Ludo=E2=80=99.