From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#60460: 30.0.50; [FR] avoid putting remote files to local trash Date: Mon, 02 Jan 2023 19:30:52 +0100 Message-ID: <87ilhoeqlf.fsf@gmx.de> References: <87358tfglk.fsf@gmx.de> <87mt71dxhf.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38713"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: ruijie@netyu.xyz, 60460@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 02 19:32:32 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pCPbr-0009tY-N8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Jan 2023 19:32:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCPbP-0007Pi-ER; Mon, 02 Jan 2023 13:32:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCPbO-0007PZ-6i for bug-gnu-emacs@gnu.org; Mon, 02 Jan 2023 13:32:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pCPbN-0004CM-UH for bug-gnu-emacs@gnu.org; Mon, 02 Jan 2023 13:32:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pCPbN-0005Rj-Q7 for bug-gnu-emacs@gnu.org; Mon, 02 Jan 2023 13:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Jan 2023 18:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60460 X-GNU-PR-Package: emacs Original-Received: via spool by 60460-submit@debbugs.gnu.org id=B60460.167268429720898 (code B ref 60460); Mon, 02 Jan 2023 18:32:01 +0000 Original-Received: (at 60460) by debbugs.gnu.org; 2 Jan 2023 18:31:37 +0000 Original-Received: from localhost ([127.0.0.1]:44040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCPaz-0005R0-BY for submit@debbugs.gnu.org; Mon, 02 Jan 2023 13:31:37 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:58037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCPax-0005Qm-BF for 60460@debbugs.gnu.org; Mon, 02 Jan 2023 13:31:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1672684255; bh=f9qY3sMKqrgdxOaB4qh3FtvrCdXEsZyDVJNw4Sh3yCI=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=pXJF8VXsSlnVRhqPS+HDZkWRmpCpGtJvpQPtoSuw0LhrA+/tgWhpzngKaDtZhYMYh JpzLBQrQv0ljPBzCRrHhWx4rIU48Su7USCEfwPzyI8HsfyereDo/x9IQkqEBmAa6oP ILfghLxH22mGwgbA6N+cJxBn+B/xQ31QNoCd83vCgylAxYmLhefxaDKXRzIMhO6GCN 0CeFROJhfO2kjqM4lNc5olmKcoKeTp6p7/fI4dp8C8iqG5ga9+fMrHr89L/Hq0rO08 1+5R7LSguKzcEH+XZabFzybfm/viaLc+FlONQZXdcdM1FZM3in8V6osg+ZW5Kmhl67 jqEqoLOnLfxTw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.37.45]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N8XPn-1ohWne3Bir-014Sld; Mon, 02 Jan 2023 19:30:55 +0100 In-Reply-To: (Jean Louis's message of "Mon, 2 Jan 2023 19:28:40 +0300") X-Provags-ID: V03:K1:8UUYrVbN94NvH0M3BVz6M7kkg3MfXnQDzi9dUpiuDT25AFEQUgm Hq7imOwXROvRLHij3/GKA9X/+jRzCc2m1EweL4DDo704/RkFAt7SNfWWVsSeO5Cdof9q+/0 45UFkOHkBvuIqL5ELU7JOvijKx1n05umhBoWTTYo3/hy6O8H+x+PvH1FdTIVGoC8SLuh3RO 5C06vaLnqVtFudaWPT6sw== UI-OutboundReport: notjunk:1;M01:P0:ZvvwNYwsboI=;ucky9wVjuhXqWdoDYAD7XvcJmh8 omJouygUwvnJL005zw4FVJyGo+834+CRDHnfGPQE+Ks0Tq/vpnOIBzwhAU472IG46jdXlOcDc EBCeBAur/B3GzpgWXHEsBavEJK+ZspiTqEfPMKe9qFsS6LXUdo/QUY22uNp/MN8rv9sT94yz5 Agkncmg8Nf1yFp/sZJIOSJeIwHIZUfC19d2Qx1OS4UrheQIuHMpfvC73cYCY7XgR5pf4NVize 1j0mdTP6qStS4d012Lf+MEKvGyfQtSraF3n2p/CpYFTqggkNiKUJclPMeTDTl+24HnMyp9YQV LtPVT9Ziho57s7QeQ5DtXV6mNvt3WFKBPfxvvh48HAJmcNX+KoKSTbwbAmV38ukNxY6FcCqrG DYZj9UJBxIKCDjlh6nmVnnd9z4uriI2lsMpv++Q7ZlncQGKKoeaPwkPZgnOjfT6Aj0Uq0+awW V77Qscx5AlvdIycmUZNY1DQWBMasqPF5fH2CzsQnoqIkGIcPtfiDNEVdoHeRaNLlmuB7+lMjb 6jlcvVD0MPYKS+ejnhNejw8rnw5vUsFKK7wIa5DQcKZlZTR038qKRf9MgwidT7wqdwag357Pk BOtW6Bw0lzSUAFDXkc9UYlNIU06yS6TFHuHL0J2/8bFNw74f+gbj001FlCfeAkK7opQP9xsij hEHTwlzxt3KqxT1eougqNPpPGp/mR8JkdqHpOSglMmiSrRqJu+9PY784uOjLYUybCZyryLjPp cvUPz4MFQqGnfPYKhJnDWWXv9SEAF6J6fj/Ra+xoURO7GHx2LLHitgpXXeIDnL2qkvCdcrqO X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252353 Archived-At: Jean Louis writes: Hi Jean, >> >> Alternatively, we could add a new user option >> >> `remote-file-name-inhibit-delete-by-moving-to-trash' (*), >> > >> > That sounds good. >> > >> > But what is remote? Is /sudo:: also remote? User may want to have >> > access to sudo and move those files to Trash as well. >> >> "/sudo::" is also remote. And yes, it shouldn't go either to the user's >> trash directory (if configured so), it could be a security problem. > > Beyond this discussion, I don't see security problem. When somebody > has sudo rights, then that person can transfer files anywhere that > person wants. But there are other attack vectors then. Trash files from root user, located in the user's home directory, could have weak permissions. > Settings in Emacs to delete by moving trash are explicit decisions of > user. Same with `sudo'. Administrator gives privilege to `sudoer', > and that sudoer may do what he thinks is right and good. > > I would personally prefer that sudo editing goes in trash. You are free to configure respective connection-local variables. > Anyway, when editing with sudo I see this file: > > lrwxrwxrwx 1 root root 46 Jan 2 19:27 .#at.deny -> admin@prot= ected.1904257840789327597 > > which is dangling symlink, do you know about it? Is it bug? No, it is a lock file. See (info "(elisp) File Locks") Best regards, Michael.