From unknown Fri Aug 15 16:17:38 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#32413 <32413@debbugs.gnu.org> To: bug#32413 <32413@debbugs.gnu.org> Subject: Status: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory Reply-To: bug#32413 <32413@debbugs.gnu.org> Date: Fri, 15 Aug 2025 23:17:38 +0000 retitle 32413 25.2; When run as root, emacs writes dconf files in a non-roo= t user's /run/user/XXX directory reassign 32413 emacs submitter 32413 Vincent Lefevre severity 32413 normal tag 32413 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 05:30:33 2018 Received: (at submit) by debbugs.gnu.org; 10 Aug 2018 09:30:33 +0000 Received: from localhost ([127.0.0.1]:46371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo3ke-0002K6-RG for submit@debbugs.gnu.org; Fri, 10 Aug 2018 05:30:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo3kc-0002Ju-Ml for submit@debbugs.gnu.org; Fri, 10 Aug 2018 05:30:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fo3kV-0004qZ-Pe for submit@debbugs.gnu.org; Fri, 10 Aug 2018 05:30:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55665) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fo3kV-0004qR-L6 for submit@debbugs.gnu.org; Fri, 10 Aug 2018 05:30:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fo3kT-0003ro-VF for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2018 05:30:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fo3kQ-0004mX-9k for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2018 05:30:21 -0400 Received: from joooj.vinc17.net ([155.133.131.76]:38300) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fo3kP-0004eG-LB for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2018 05:30:17 -0400 Received: from smtp-zira.vinc17.net (unknown [37.168.145.214]) by joooj.vinc17.net (Postfix) with ESMTPSA id BEA16256; Fri, 10 Aug 2018 11:30:09 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 3EDB8C2017A; Fri, 10 Aug 2018 11:30:09 +0200 (CEST) From: Vincent Lefevre To: bug-gnu-emacs@gnu.org Subject: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory Date: Fri, 10 Aug 2018 11:30:09 +0200 Message-ID: <87k1oyy3fi.fsf@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit 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 (------) Original bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891063 In summary: Just after one logs in, does a "su" and runs Emacs, Emacs writes dconf files in a non-root user's /run/user/XXX directory (related to DBUS_SESSION_BUS_ADDRESS or XDG_RUNTIME_DIR). I got: zira:~> ll /run/user/1000 total 0 srw-rw-rw- 1 vinc17 vinc17 0 2018-02-22 04:02:21 bus= drwx------ 3 vinc17 vinc17 60 2018-02-22 04:02:21 dbus-1/ drwx------ 2 root root 60 2018-02-22 04:02:32 dconf/ ^^^^^^^^^^^ drwx------ 2 vinc17 vinc17 140 2018-02-22 04:02:21 gnupg/ drwx------ 2 vinc17 vinc17 40 2018-02-22 04:03:28 gvfs/ drwx------ 2 vinc17 vinc17 80 2018-02-22 04:02:21 pulse/ drwxr-xr-x 2 vinc17 vinc17 80 2018-02-22 04:02:21 systemd/ Unsurprisingly, this then yields issues when one runs Emacs as a normal user: (emacs:8958): dconf-CRITICAL **: unable to create file '/run/user/1000/dconf/user': Permission denied. dconf will not work properly. [...] Emacs should never create files/directories if the user hasn't explicitly asked it to do that, in particular if this is under a directory owned by a different user. In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-11, modified by Debian built on x86-ubc-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12000000 System Description: Debian GNU/Linux stable-updates (sid) Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs25-cfFROJ/emacs25-25.2+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LC_COLLATE: POSIX value of $LC_CTYPE: en_US.UTF-8 value of $LC_TIME: en_DK value of $LANG: POSIX locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done Loading /etc/emacs/site-start.d/50rnc-mode.el (source)...done Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done Loading /etc/emacs/site-start.d/50why3.el (source)...done Loading /home/vinc17/share/emacs/site-lisp/mutteditor.el (source)...done Loading time...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs/25.2/site-lisp/why3 hides /usr/share/emacs/site-lisp/why3 /usr/share/emacs/25.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs25/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/25.2/lisp/textmodes/rst /usr/share/emacs25/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/25.2/lisp/language/thai-word Features: (shadow sort mail-extr warnings emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu mail-prsvr mail-utils time cus-start cus-load paren cc-styles cc-align cc-engine cc-vars cc-defs edmacro kmacro cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 107170 5004) (symbols 48 22452 0) (miscs 40 55 113) (strings 32 20688 4143) (string-bytes 1 602044) (vectors 16 12882) (vector-slots 8 443217 3065) (floats 8 171 101) (intervals 56 267 0) (buffers 976 18)) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 08:17:36 2018 Received: (at 32413) by debbugs.gnu.org; 10 Aug 2018 12:17:37 +0000 Received: from localhost ([127.0.0.1]:46408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo6MK-00009p-O6 for submit@debbugs.gnu.org; Fri, 10 Aug 2018 08:17:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo6MJ-00009c-5K for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 08:17:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fo6MA-0005R2-2J for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 08:17:30 -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]:42911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fo6M9-0005Qv-Vc; Fri, 10 Aug 2018 08:17:26 -0400 Received: from [176.228.60.248] (port=4182 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fo6M9-0003RK-Dn; Fri, 10 Aug 2018 08:17:25 -0400 Date: Fri, 10 Aug 2018 15:17:26 +0300 Message-Id: <83600io1pl.fsf@gnu.org> From: Eli Zaretskii To: Vincent Lefevre In-reply-to: <87k1oyy3fi.fsf@zira.vinc17.org> (message from Vincent Lefevre on Fri, 10 Aug 2018 11:30:09 +0200) Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory References: <87k1oyy3fi.fsf@zira.vinc17.org> 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: 32413 Cc: 32413@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 (------) > From: Vincent Lefevre > Date: Fri, 10 Aug 2018 11:30:09 +0200 > > Emacs should never create files/directories if the user hasn't > explicitly asked it to do that I don't agree with this principle, not in this general form. (The "in a directory owned by another user" part, to which I think I agree, as written, was not a qualification for this general statement, so it doesn't count for the purposes of the principle itself.) As just one random example of what Emacs "should never do", we write the customizations to a file "without the user's explicit request". From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 08:28:59 2018 Received: (at 32413) by debbugs.gnu.org; 10 Aug 2018 12:28:59 +0000 Received: from localhost ([127.0.0.1]:46413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo6XK-0000Qi-QN for submit@debbugs.gnu.org; Fri, 10 Aug 2018 08:28:58 -0400 Received: from mail-it0-f46.google.com ([209.85.214.46]:38834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo6XI-0000QS-Kz for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 08:28:56 -0400 Received: by mail-it0-f46.google.com with SMTP id v71-v6so2372758itb.3 for <32413@debbugs.gnu.org>; Fri, 10 Aug 2018 05:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=uYngJYzuI9rQaPfn7Ig0bJlupglPEQaXPqh0pDKuZZE=; b=OdKT4cJfuKmAzIZBWcnpdl5wN/ReuYoTsAPba4KaeshJLsTRqPOT3EuNQCDLr6x8Xf WyX547qgG+oLbCxbZZjbq02u1264g7IK0GK0H+Qg2KSwCIFrLkAkLIULAskFytaF3DM5 VON7vh/4uGnkFU4CseiIBWq9Ym+t6eMpoVADJVoaAp3Qk63AdKg1cP3EPV72b/+SZdHC I/XptTBZ/xRNloJSSR3MSG/66IfZRhrvTd06ZC8rp+SNGRyqnBw4IUrtVO4i6rOws0Vk EmYVaEQehBGna+GKNkYeDZdBbwJHlhtusMNEkwNB391A3fqM5P8fWhPWpvCG5oYeo/Bx eIfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=uYngJYzuI9rQaPfn7Ig0bJlupglPEQaXPqh0pDKuZZE=; b=n0X1VFDRpsctr2TLtq8iOfxeIGGh0FhmWvz/ktU6fEmr0LCiq6o58iP5cJuejlfXG8 vRunTGLsWJ995PNlRSEmEw0ydnwhb/xQbzVEsCTyWvAxme4Q1NjwgWbglsyRIl8e/cAN 1oMEmJ6RtBcBihRFBeH0GkaQYsHs+/Cgi+JaCeg6iD1uB8oB7eFOM3kwhgQpnmCMaCnP IQf2M98oOthUnUmtBAr72+atLlmrHcDvUNUZIdjQag6/jmr864t+OD5pM0r45Iv4ErxE RyMQWnQfIaKrozh708b5AR7ANPn454yoZf6VZnyepZiVPm/UdKayuGZIZozRsbu0H3q7 /d9Q== X-Gm-Message-State: AOUpUlFxVyFB1uIAae5RRHE8VKCS/0284DxAwtayEyiz7eYpROPUy8PK ctohhNgNFknYb/kzzrfU46bd2X1G X-Google-Smtp-Source: AA+uWPycCc07+UHx2xLn6slzIoigwQTN7vxzry8Zx5YTuyesWYx7OjLbI8z4e0Xzn4Id4iQfUfijiA== X-Received: by 2002:a24:be8f:: with SMTP id i137-v6mr1937522itf.113.1533904130783; Fri, 10 Aug 2018 05:28:50 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id v13-v6sm1166220ita.38.2018.08.10.05.28.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Aug 2018 05:28:50 -0700 (PDT) From: Noam Postavsky To: Vincent Lefevre Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory References: <87k1oyy3fi.fsf@zira.vinc17.org> Date: Fri, 10 Aug 2018 08:28:49 -0400 In-Reply-To: <87k1oyy3fi.fsf@zira.vinc17.org> (Vincent Lefevre's message of "Fri, 10 Aug 2018 11:30:09 +0200") Message-ID: <87lg9ewgla.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32413 Cc: 32413@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: -1.0 (-) Vincent Lefevre writes: > Emacs should never create files/directories if the user hasn't > explicitly asked it to do that, in particular if this is under > a directory owned by a different user. Does it help if you ./configure --without-gsettings? (maybe it should default to off, I'm not sure what gsettings is actually good for apart from causing bugs, e.g., #25228) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 08:39:28 2018 Received: (at 32413) by debbugs.gnu.org; 10 Aug 2018 12:39:28 +0000 Received: from localhost ([127.0.0.1]:46420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo6hT-0000i1-Rm for submit@debbugs.gnu.org; Fri, 10 Aug 2018 08:39:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo6hS-0000hm-00 for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 08:39:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fo6hJ-0001ki-JO for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 08:39:20 -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]:44043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fo6hJ-0001kY-Eb; Fri, 10 Aug 2018 08:39:17 -0400 Received: from [176.228.60.248] (port=1552 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fo6hI-00032N-Px; Fri, 10 Aug 2018 08:39:17 -0400 Date: Fri, 10 Aug 2018 15:39:17 +0300 Message-Id: <83y3demm4q.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: <87lg9ewgla.fsf@gmail.com> (message from Noam Postavsky on Fri, 10 Aug 2018 08:28:49 -0400) Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory References: <87k1oyy3fi.fsf@zira.vinc17.org> <87lg9ewgla.fsf@gmail.com> 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: 32413 Cc: vincent@vinc17.net, 32413@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 (------) > From: Noam Postavsky > Date: Fri, 10 Aug 2018 08:28:49 -0400 > Cc: 32413@debbugs.gnu.org > > Vincent Lefevre writes: > > > Emacs should never create files/directories if the user hasn't > > explicitly asked it to do that, in particular if this is under > > a directory owned by a different user. > > Does it help if you ./configure --without-gsettings? So you are saying that it's the Gsettings functions that write to that directory, outside of Emacs's control? > (maybe it should default to off, I'm not sure what gsettings is actually > good for apart from causing bugs, e.g., #25228) I might agree, but then won't too many users be annoyed by Emacs not following desktop-wide customizations? From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 08:58:02 2018 Received: (at 32413) by debbugs.gnu.org; 10 Aug 2018 12:58:02 +0000 Received: from localhost ([127.0.0.1]:46424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo6zS-00019p-Ef for submit@debbugs.gnu.org; Fri, 10 Aug 2018 08:58:02 -0400 Received: from joooj.vinc17.net ([155.133.131.76]:43724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo6zP-00019Z-UA for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 08:58:00 -0400 Received: from smtp-zira.vinc17.net (unknown [37.168.145.214]) by joooj.vinc17.net (Postfix) with ESMTPSA id 91DD324F; Fri, 10 Aug 2018 14:57:58 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 22401C200CD; Fri, 10 Aug 2018 14:57:58 +0200 (CEST) Date: Fri, 10 Aug 2018 14:57:58 +0200 From: Vincent Lefevre To: Eli Zaretskii Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory Message-ID: <20180810125758.GD12819@zira.vinc17.org> References: <87k1oyy3fi.fsf@zira.vinc17.org> <83600io1pl.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <83600io1pl.fsf@gnu.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.10.1+58 (10c1ac4b) vl-108074 (2018-07-29) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32413 Cc: 32413@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: -1.0 (-) On 2018-08-10 15:17:26 +0300, Eli Zaretskii wrote: > > From: Vincent Lefevre > > Date: Fri, 10 Aug 2018 11:30:09 +0200 > > > > Emacs should never create files/directories if the user hasn't > > explicitly asked it to do that > > I don't agree with this principle, not in this general form. (The "in > a directory owned by another user" part, to which I think I agree, as > written, was not a qualification for this general statement, so it > doesn't count for the purposes of the principle itself.) > > As just one random example of what Emacs "should never do", we write > the customizations to a file "without the user's explicit request". I don't understand why there is anything to write if the user hasn't customized anything. And if the user introduces some customization, then this can be regarded as an explicit write operation (due to the action of the user in this sense). -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 09:47:31 2018 Received: (at 32413) by debbugs.gnu.org; 10 Aug 2018 13:47:31 +0000 Received: from localhost ([127.0.0.1]:46437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo7lJ-0002Mm-Kk for submit@debbugs.gnu.org; Fri, 10 Aug 2018 09:47:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo7lH-0002MS-4g for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 09:47:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fo7l7-0006W9-VO for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 09:47:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fo7l7-0006Vs-Qg; Fri, 10 Aug 2018 09:47:17 -0400 Received: from [176.228.60.248] (port=1865 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fo7l7-0003ss-9w; Fri, 10 Aug 2018 09:47:17 -0400 Date: Fri, 10 Aug 2018 16:47:17 +0300 Message-Id: <83va8imize.fsf@gnu.org> From: Eli Zaretskii To: Vincent Lefevre In-reply-to: <20180810125758.GD12819@zira.vinc17.org> (message from Vincent Lefevre on Fri, 10 Aug 2018 14:57:58 +0200) Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory References: <87k1oyy3fi.fsf@zira.vinc17.org> <83600io1pl.fsf@gnu.org> <20180810125758.GD12819@zira.vinc17.org> 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: 32413 Cc: 32413@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 (------) > Date: Fri, 10 Aug 2018 14:57:58 +0200 > From: Vincent Lefevre > Cc: 32413@debbugs.gnu.org > > > > Emacs should never create files/directories if the user hasn't > > > explicitly asked it to do that > > > > I don't agree with this principle, not in this general form. (The "in > > a directory owned by another user" part, to which I think I agree, as > > written, was not a qualification for this general statement, so it > > doesn't count for the purposes of the principle itself.) > > > > As just one random example of what Emacs "should never do", we write > > the customizations to a file "without the user's explicit request". > > I don't understand why there is anything to write if the user > hasn't customized anything. That was just an example of something that doesn't explicitly ask for writing a file. Another example is Eshell: when it exits, it writes files in the ~/.eshell directory. More generally, certain Emacs features might write files "without user explicitly asking" as part of providing some feature that needs to be persistent between sessions. I think that's quite allright, which is why I disagree with the general principle you were trying to establish. > And if the user introduces some customization, then this can be > regarded as an explicit write operation (due to the action of the > user in this sense). Well, in that case, let's regard user using dconf as an explicit write permission ;-) Seriously, though: if your principle can be subverted in some situations, then we need to define what situations are those. In particular, how is what you report different from what Eshell does on exit? From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 10:17:56 2018 Received: (at 32413) by debbugs.gnu.org; 10 Aug 2018 14:17:57 +0000 Received: from localhost ([127.0.0.1]:47034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo8Em-0003Dn-LW for submit@debbugs.gnu.org; Fri, 10 Aug 2018 10:17:56 -0400 Received: from joooj.vinc17.net ([155.133.131.76]:43750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo8Ek-0003Dc-Vn for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 10:17:55 -0400 Received: from smtp-zira.vinc17.net (unknown [37.168.145.214]) by joooj.vinc17.net (Postfix) with ESMTPSA id C252124F; Fri, 10 Aug 2018 16:17:53 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 4DAB5C200CD; Fri, 10 Aug 2018 16:17:53 +0200 (CEST) Date: Fri, 10 Aug 2018 16:17:53 +0200 From: Vincent Lefevre To: Noam Postavsky Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory Message-ID: <20180810141753.GA27702@zira.vinc17.org> References: <87k1oyy3fi.fsf@zira.vinc17.org> <87lg9ewgla.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87lg9ewgla.fsf@gmail.com> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.10.1+58 (10c1ac4b) vl-108074 (2018-07-29) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32413 Cc: 32413@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: -1.0 (-) On 2018-08-10 08:28:49 -0400, Noam Postavsky wrote: > Vincent Lefevre writes: > > > Emacs should never create files/directories if the user hasn't > > explicitly asked it to do that, in particular if this is under > > a directory owned by a different user. > > Does it help if you ./configure --without-gsettings? Yes, this solves the problem (according to strace). -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 10:32:06 2018 Received: (at 32413) by debbugs.gnu.org; 10 Aug 2018 14:32:06 +0000 Received: from localhost ([127.0.0.1]:47039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo8ST-0003a7-Vt for submit@debbugs.gnu.org; Fri, 10 Aug 2018 10:32:06 -0400 Received: from joooj.vinc17.net ([155.133.131.76]:43756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo8SS-0003Zz-G3 for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 10:32:04 -0400 Received: from smtp-zira.vinc17.net (unknown [37.168.145.214]) by joooj.vinc17.net (Postfix) with ESMTPSA id C86EF24F; Fri, 10 Aug 2018 16:32:03 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 4DC71C200CD; Fri, 10 Aug 2018 16:32:03 +0200 (CEST) Date: Fri, 10 Aug 2018 16:32:03 +0200 From: Vincent Lefevre To: Eli Zaretskii Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory Message-ID: <20180810143203.GE12819@zira.vinc17.org> References: <87k1oyy3fi.fsf@zira.vinc17.org> <83600io1pl.fsf@gnu.org> <20180810125758.GD12819@zira.vinc17.org> <83va8imize.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <83va8imize.fsf@gnu.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.10.1+58 (10c1ac4b) vl-108074 (2018-07-29) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32413 Cc: 32413@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: -1.0 (-) On 2018-08-10 16:47:17 +0300, Eli Zaretskii wrote: > That was just an example of something that doesn't explicitly ask for > writing a file. Another example is Eshell: when it exits, it writes > files in the ~/.eshell directory. If you mean that it writes the history, then that's a usual shell thing, so that's OK. BTW, that's probably one of the reasons why "su" redefines HOME to the target user home directory by default. I suppose that caches could be OK too as long as they are written in a "safe" place. > More generally, certain Emacs features might write files "without user > explicitly asking" as part of providing some feature that needs to be > persistent between sessions. I think that's quite allright, which is > why I disagree with the general principle you were trying to > establish. Perhaps. But, for instance, writing a default .emacs would not be OK and would require at least user confirmation. > > And if the user introduces some customization, then this can be > > regarded as an explicit write operation (due to the action of the > > user in this sense). > > Well, in that case, let's regard user using dconf as an explicit write > permission ;-) > > Seriously, though: if your principle can be subverted in some > situations, then we need to define what situations are those. In > particular, how is what you report different from what Eshell does on > exit? So, perhaps this should be on a case by case basis. I don't know about dconf, but in that case, this doesn't seem to be correct. And if not writing under $HOME, I think that the owner of the directory should be checked in some cases. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 11:41:43 2018 Received: (at 32413) by debbugs.gnu.org; 10 Aug 2018 15:41:43 +0000 Received: from localhost ([127.0.0.1]:47052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo9Xq-0005Ot-R2 for submit@debbugs.gnu.org; Fri, 10 Aug 2018 11:41:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo9Xq-0005Oe-9A for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 11:41:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fo9Xk-0005CM-AW for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 11:41:37 -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]:47872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fo9Xh-0005AO-CC; Fri, 10 Aug 2018 11:41:33 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1fo9Xf-0003Kt-6Q; Fri, 10 Aug 2018 11:41:31 -0400 From: Glenn Morris To: Vincent Lefevre Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory References: <87k1oyy3fi.fsf@zira.vinc17.org> <83600io1pl.fsf@gnu.org> <20180810125758.GD12819@zira.vinc17.org> <83va8imize.fsf@gnu.org> <20180810143203.GE12819@zira.vinc17.org> X-Spook: Port Radioactive National Operations Center insurgency X-Ran: za4C{oQbeL+L*`Mdt|hUj"d'#Fu8-+[B9enyLspAuG#=.J$xwJ~(fR,m/*:l6S'CapmcuF X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 10 Aug 2018 11:41:30 -0400 In-Reply-To: <20180810143203.GE12819@zira.vinc17.org> (Vincent Lefevre's message of "Fri, 10 Aug 2018 16:32:03 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain 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: 32413 Cc: Eli Zaretskii , 32413@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 (------) Vincent Lefevre wrote: > If you mean that it writes the history, then that's a usual shell > thing, so that's OK. The behaviour you complain about in the subject line is a usual X thing, for "modern" (ie non-ancient) desktop applications, as was explained in the referenced Debian bug reports you were pointed to. > BTW, that's probably one of the reasons why "su" redefines HOME to the > target user home directory by default. And it's one of the reasons why the referenced reports discouraged running desktop applications under plain "su". I'm sure in one of the reports someone suggested modifying plain "su". The specific example of dconf etc is not a bug, it's how these things work. If you don't like it, use the configure option to disable that feature (most programs won't give you that option). I think the general principle of "Emacs should never create files/directories if the user hasn't explicitly asked it to do that" is a non-starter. So this report should be closed wontfix IMO. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 11:53:14 2018 Received: (at 32413) by debbugs.gnu.org; 10 Aug 2018 15:53:14 +0000 Received: from localhost ([127.0.0.1]:47060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo9j0-0005gN-5K for submit@debbugs.gnu.org; Fri, 10 Aug 2018 11:53:14 -0400 Received: from joooj.vinc17.net ([155.133.131.76]:43782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo9iy-0005g8-Gk for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 11:53:12 -0400 Received: from smtp-zira.vinc17.net (unknown [37.168.145.214]) by joooj.vinc17.net (Postfix) with ESMTPSA id 1FDA124F; Fri, 10 Aug 2018 17:53:11 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 58C7CC200CD; Fri, 10 Aug 2018 17:53:10 +0200 (CEST) Date: Fri, 10 Aug 2018 17:53:10 +0200 From: Vincent Lefevre To: Glenn Morris Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory Message-ID: <20180810155310.GF12819@zira.vinc17.org> References: <87k1oyy3fi.fsf@zira.vinc17.org> <83600io1pl.fsf@gnu.org> <20180810125758.GD12819@zira.vinc17.org> <83va8imize.fsf@gnu.org> <20180810143203.GE12819@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.10.1+58 (10c1ac4b) vl-108074 (2018-07-29) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32413 Cc: Eli Zaretskii , 32413@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: -1.0 (-) On 2018-08-10 11:41:30 -0400, Glenn Morris wrote: > Vincent Lefevre wrote: > > If you mean that it writes the history, then that's a usual shell > > thing, so that's OK. > > The behaviour you complain about in the subject line is a usual X thing, > for "modern" (ie non-ancient) desktop applications, as was explained in > the referenced Debian bug reports you were pointed to. But Emacs has been an ancient desktop application. Now, one has a regression. > > BTW, that's probably one of the reasons why "su" redefines HOME to the > > target user home directory by default. > > And it's one of the reasons why the referenced reports discouraged > running desktop applications under plain "su". I'm sure in one of the > reports someone suggested modifying plain "su". This would make sense to follow the principle of plain "su" (e.g. HOME is redefined...). > The specific example of dconf etc is not a bug, it's how these things > work. If you don't like it, use the configure option to disable that > feature (most programs won't give you that option). I think the general > principle of "Emacs should never create files/directories if the user > hasn't explicitly asked it to do that" is a non-starter. > So this report should be closed wontfix IMO. I'm using Debian's package. So, you are saying that Debian should use this option? -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 15:40:02 2018 Received: (at 32413) by debbugs.gnu.org; 10 Aug 2018 19:40:02 +0000 Received: from localhost ([127.0.0.1]:47627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foDGT-0003MY-Vb for submit@debbugs.gnu.org; Fri, 10 Aug 2018 15:40:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foDGS-0003M5-TT for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 15:40:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foDGK-0003Q8-Dq for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 15:39:55 -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]:53383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foDGK-0003Pi-A1; Fri, 10 Aug 2018 15:39:52 -0400 Received: from [176.228.60.248] (port=3757 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1foDGJ-00057b-Cj; Fri, 10 Aug 2018 15:39:51 -0400 Date: Fri, 10 Aug 2018 22:39:52 +0300 Message-Id: <83o9eam2nr.fsf@gnu.org> From: Eli Zaretskii To: Glenn Morris In-reply-to: (message from Glenn Morris on Fri, 10 Aug 2018 11:41:30 -0400) Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory References: <87k1oyy3fi.fsf@zira.vinc17.org> <83600io1pl.fsf@gnu.org> <20180810125758.GD12819@zira.vinc17.org> <83va8imize.fsf@gnu.org> <20180810143203.GE12819@zira.vinc17.org> 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: 32413 Cc: vincent@vinc17.net, 32413@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 (------) > From: Glenn Morris > Cc: Eli Zaretskii , 32413@debbugs.gnu.org > Date: Fri, 10 Aug 2018 11:41:30 -0400 > > So this report should be closed wontfix IMO. I tend to agree. This report seems to be about standard behavior of desktop-aware applications. Emacs just behaves like any other app does in this case. And the code which determines this behavior is not in Emacs. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 12 13:29:27 2018 Received: (at 32413) by debbugs.gnu.org; 12 Aug 2018 17:29:27 +0000 Received: from localhost ([127.0.0.1]:48989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fouAy-00060Z-1o for submit@debbugs.gnu.org; Sun, 12 Aug 2018 13:29:27 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:43371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fouAS-0005zj-TZ for 32413@debbugs.gnu.org; Sun, 12 Aug 2018 13:29:01 -0400 Received: by mail-io0-f177.google.com with SMTP id y10-v6so12243063ioa.10 for <32413@debbugs.gnu.org>; Sun, 12 Aug 2018 10:28:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1EIO2WyF7HTGIs4jXq5830/SszZgmWFmnizGh0aww5U=; b=XEi2fxkgL4OHsDdoCro3GVQzRCzy0kd/uk1YUWxE24a9mj0/OQzhB6fKorpeRK3BSM TjO2IyvNadt8giMKoLh54CdrxKgOeVJPhu2S7WBH8v5O7XPV990IdzSDG3S+oa5PdZzb 3f463tIWHJiq5oWeCDEuyht3ak5rwC8nEMnii/AoY6gcEry9NCDTX38uVggup+ksl9Z+ +zHsp9mgOKxrcVqCwwLA1WxoZhb9Yy6zb3lZjULGV68IU7WOu9e0//4+66Dlj73Exz8p Pae57pr+xeuvwhqNLrxLAIg4GsLGbFKE9DIWYTgO9YoB3SRqGeCoeXZ+KLrWMPR87aZU Ir+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=1EIO2WyF7HTGIs4jXq5830/SszZgmWFmnizGh0aww5U=; b=Kv6VSu/hj2abBLqAtAakH7Epx6wf1aUxoBYY5o3PegG2t64gKNRpcnZr8uiepk5zCp EV47jsGzEkIO9dVvdX//SUtNWw+Nbh029pio9fKz1L9TDZJJAbilKZzd3pqP8oVjUlVC oJ2Ijs8FzpNiTPHetieO4yA8cVMOQWLC8ZJpM/wmXQ2JMMluViopizKt1oGSf0SZKavo 6Dmq1BvqYxf/73b5T08npWzzWOezjLns/OboYN4/Y/ScB3HzNKJrpsb7BsR5tU0z307r pKEmgZo/r3asZfFm+yWkx2UPzWXhB3Fl5udqm1mb/rtq0HDcTyXO+3ujMVwN29BXScql JQZA== X-Gm-Message-State: AOUpUlFZTQ7o5+2KDrWOeHNO2VA6pZcv6/kgpo+JLsxFFkBeBsLTQ6dY +bEZoDKlzSrq0UscwwDTRMVhO7M2 X-Google-Smtp-Source: AA+uWPw71oX5vVQChZ3665I1nyjYC8fTJJSBFNRVdPMxV+Sw+N8IqDlO0trbMKJQA7K6bCRXFU7+SQ== X-Received: by 2002:a6b:ca85:: with SMTP id a127-v6mr12832145iog.31.1534094899905; Sun, 12 Aug 2018 10:28:19 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id w193-v6sm5164979ita.11.2018.08.12.10.28.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Aug 2018 10:28:19 -0700 (PDT) From: Noam Postavsky To: Eli Zaretskii Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory References: <87k1oyy3fi.fsf@zira.vinc17.org> <87lg9ewgla.fsf@gmail.com> <83y3demm4q.fsf@gnu.org> Date: Sun, 12 Aug 2018 13:28:18 -0400 In-Reply-To: <83y3demm4q.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 Aug 2018 15:39:17 +0300") Message-ID: <87ftzjwl3h.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32413 Cc: vincent@vinc17.net, 32413@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: -1.0 (-) Eli Zaretskii writes: >> Does it help if you ./configure --without-gsettings? >> (maybe it should default to off, I'm not sure what gsettings is actually >> good for apart from causing bugs, e.g., #25228) > > I might agree, but then won't too many users be annoyed by Emacs not > following desktop-wide customizations? Hmm, yeah, we would need at least some feedback from users who actually use a full desktop environment (GNOME, I guess?) before changing this. For myself, I just run a simple window manager, so the concept of "desktop-wide customization" is fairly meaningless on my system. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 12 13:32:44 2018 Received: (at 32413) by debbugs.gnu.org; 12 Aug 2018 17:32:44 +0000 Received: from localhost ([127.0.0.1]:48994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fouE8-000671-Tm for submit@debbugs.gnu.org; Sun, 12 Aug 2018 13:32:43 -0400 Received: from mail-it0-f43.google.com ([209.85.214.43]:36256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fouDD-00065K-Va; Sun, 12 Aug 2018 13:31:52 -0400 Received: by mail-it0-f43.google.com with SMTP id p81-v6so9872013itp.1; Sun, 12 Aug 2018 10:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=hQqy4pA//Jto63bu7HRcW9qoWX6TEi/5y/shTRTgU1I=; b=tGdqpBoVszDIUed64WjMfdwcKCd5GPDvQYt6jwb0C8+WLxHAtyigQrrVUPsLJJQLJ/ YHo9T9DiMzyqLbwHOiePEfIKma+JpWSYhNFRGdTyFqYMbiiKXnbYNJfRsp//0pquoNnY 21iPkaiy+M+j+fjclMi2XYzERNRRNlIAIK+zWFjqtNQ7uijZgTWvJawQjLP6ZTcJISeM pHQ0173ksZv7VGCU06eXRw6HfsnEUqheqW6E+mw5qLZ0BBYZqgHtdtU5xTxn0uRcvPoI z5o2NDg5r20+Pu8aXAkCO2+3yHopx4l2PQEKQBLh8snMxL6iIN/9xs+dPwzyut3J4tZd ObHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=hQqy4pA//Jto63bu7HRcW9qoWX6TEi/5y/shTRTgU1I=; b=qD6RLMGg+eTUi1H6w2Y2BOl7xr3U+3vi9KanEGNzO83kYzofOXEtRvrbRq32Cw+28y UUBgZVE1Y1KHZLd2nRFnZ+wB1D3sRsWIfdVhObObsdKth5v+k86Jzt+q8Pir7KxWsBjR qv2EwyN+AawU8rJtwtRIWhzgqeHex48VwlXHyna/NW+CphUKdtuXMsi6tlpk8d8i7JsR yk00vHGlKz4cjmP8gmP/A/z6jA1bmkdaKfM5vGujDG1ASkt8X+VCpfwHRU/uild7t+GM QbexYG7JhjVKMkYjUSYWtTTGfKSDGElpANrEyXTdS33+vV4keOpaCLU73MFeucQXLya4 6n7A== X-Gm-Message-State: AOUpUlEq3zV9lUa5bsfYMbyEwKGXjJMivWLzIKOhxFJbkcfTU04Dw2o8 IlaP9smTCHFUwFXuW0aGr2rVgNxq X-Google-Smtp-Source: AA+uWPxLAQTU3HXZ88tPWuP6y/ZbcUTO9yNJyVP88sK2yTL4ecva7tihiM2RGJv2ok9QTeKPmtfLBA== X-Received: by 2002:a24:4c0b:: with SMTP id a11-v6mr8141794itb.123.1534095070918; Sun, 12 Aug 2018 10:31:10 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id m7-v6sm3734753itb.39.2018.08.12.10.31.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Aug 2018 10:31:10 -0700 (PDT) From: Noam Postavsky To: Vincent Lefevre Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory References: <87k1oyy3fi.fsf@zira.vinc17.org> <83600io1pl.fsf@gnu.org> <20180810125758.GD12819@zira.vinc17.org> <83va8imize.fsf@gnu.org> <20180810143203.GE12819@zira.vinc17.org> <20180810155310.GF12819@zira.vinc17.org> Date: Sun, 12 Aug 2018 13:31:08 -0400 In-Reply-To: <20180810155310.GF12819@zira.vinc17.org> (Vincent Lefevre's message of "Fri, 10 Aug 2018 17:53:10 +0200") Message-ID: <87d0unwkyr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32413 Cc: Glenn Morris , Eli Zaretskii , 32413@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: -1.0 (-) tags 32413 notabug close 32413 quit >> The specific example of dconf etc is not a bug, it's how these things >> work. If you don't like it, use the configure option to disable that >> feature (most programs won't give you that option). I think the general >> principle of "Emacs should never create files/directories if the user >> hasn't explicitly asked it to do that" is a non-starter. >> So this report should be closed wontfix IMO. > > I'm using Debian's package. So, you are saying that Debian should > use this option? You should either stop using Debian's package (since you don't like the options they choose), or see if you can convince them to use that option. I think it's clear enough that ./configure --without-gsettings is as much of a fix as there's ever going to be, so I'm closing this bug. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 12 18:03:22 2018 Received: (at 32413) by debbugs.gnu.org; 12 Aug 2018 22:03:22 +0000 Received: from localhost ([127.0.0.1]:49090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foySG-00086q-Ip for submit@debbugs.gnu.org; Sun, 12 Aug 2018 18:03:22 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:36159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foySE-00086g-Lh for 32413@debbugs.gnu.org; Sun, 12 Aug 2018 18:03:19 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 41pXtF3yHWz1qvnv; Mon, 13 Aug 2018 00:03:17 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 41pXtF1Prvz1qr2G; Mon, 13 Aug 2018 00:03:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id GY84w38xDnth; Mon, 13 Aug 2018 00:03:16 +0200 (CEST) X-Auth-Info: vrcr+9GTuhr636YDNn31Bld+9fKbdqJy9SPfrGZNQkisDYfSV7BztTdGbU4QhqI2 Received: from igel.home (ppp-188-174-152-104.dynamic.mnet-online.de [188.174.152.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 13 Aug 2018 00:03:16 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id EDEA82C1488; Mon, 13 Aug 2018 00:03:15 +0200 (CEST) From: Andreas Schwab To: Noam Postavsky Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory References: <87k1oyy3fi.fsf@zira.vinc17.org> <83600io1pl.fsf@gnu.org> <20180810125758.GD12819@zira.vinc17.org> <83va8imize.fsf@gnu.org> <20180810143203.GE12819@zira.vinc17.org> <20180810155310.GF12819@zira.vinc17.org> <87d0unwkyr.fsf@gmail.com> X-Yow: Leona, I want to CONFESS things to you.. I want to WRAP you in a SCARLET ROBE trimmed with POLYVINYL CHLORIDE.. I want to EMPTY your ASHTRAYS... Date: Mon, 13 Aug 2018 00:03:15 +0200 In-Reply-To: <87d0unwkyr.fsf@gmail.com> (Noam Postavsky's message of "Sun, 12 Aug 2018 13:31:08 -0400") Message-ID: <87va8fkzto.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32413 Cc: Vincent Lefevre , 32413@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: -1.7 (-) On Aug 12 2018, Noam Postavsky wrote: > You should either stop using Debian's package (since you don't like the > options they choose), or see if you can convince them to use that > option. Or maybe even better, use Tramp instead of running Emacs as root. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 12 19:45:50 2018 Received: (at 32413) by debbugs.gnu.org; 12 Aug 2018 23:45:50 +0000 Received: from localhost ([127.0.0.1]:49121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fp03R-0002H3-To for submit@debbugs.gnu.org; Sun, 12 Aug 2018 19:45:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58989) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fp03Q-0002Gr-6T for 32413@debbugs.gnu.org; Sun, 12 Aug 2018 19:45:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fp03K-0006Y9-CN for 32413@debbugs.gnu.org; Sun, 12 Aug 2018 19:45:43 -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]:41575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fp03C-0006V6-Ob; Sun, 12 Aug 2018 19:45:34 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1fp03B-0000Au-0f; Sun, 12 Aug 2018 19:45:33 -0400 From: Glenn Morris To: Vincent Lefevre Subject: Re: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory References: <87k1oyy3fi.fsf@zira.vinc17.org> <83600io1pl.fsf@gnu.org> <20180810125758.GD12819@zira.vinc17.org> <83va8imize.fsf@gnu.org> <20180810143203.GE12819@zira.vinc17.org> <20180810155310.GF12819@zira.vinc17.org> X-Spook: Plame crypto anarchy SRI Cyber Command Ceridian military X-Ran: CRa24|g4,]du}8RIUs@7U_2qk*;`(_f(r3D{m6 (Vincent Lefevre's message of "Fri, 10 Aug 2018 17:53:10 +0200") Message-ID: <53zhxrm9nn.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain 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: 32413 Cc: Eli Zaretskii , 32413@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 (------) Vincent Lefevre wrote: > I'm using Debian's package. So, you are saying that Debian should > use this option? No. IMO the Debian bug should also be closed wontfix. From unknown Fri Aug 15 16:17:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 10 Sep 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator