From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#60460: 30.0.50; [FR] avoid putting remote files to local trash Date: Mon, 2 Jan 2023 19:28:40 +0300 Message-ID: References: <87358tfglk.fsf@gmx.de> <87mt71dxhf.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="851"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) Cc: ruijie@netyu.xyz, 60460@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 02 17:40:25 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 1pCNrM-000AYx-Un for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Jan 2023 17:40:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCNr2-00054t-R8; Mon, 02 Jan 2023 11:40:04 -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 1pCNr0-000537-DH for bug-gnu-emacs@gnu.org; Mon, 02 Jan 2023 11:40: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 1pCNr0-0002To-3k for bug-gnu-emacs@gnu.org; Mon, 02 Jan 2023 11:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pCNqz-0000CH-Nq for bug-gnu-emacs@gnu.org; Mon, 02 Jan 2023 11:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Jan 2023 16:40: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.1672677560670 (code B ref 60460); Mon, 02 Jan 2023 16:40:01 +0000 Original-Received: (at 60460) by debbugs.gnu.org; 2 Jan 2023 16:39:20 +0000 Original-Received: from localhost ([127.0.0.1]:43894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCNqJ-0000Aj-Ic for submit@debbugs.gnu.org; Mon, 02 Jan 2023 11:39:19 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:56565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCNqF-0000AV-6g for 60460@debbugs.gnu.org; Mon, 02 Jan 2023 11:39:18 -0500 Original-Received: from localhost ([::ffff:197.239.35.172]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000055D55.0000000063B308B2.0000116F; Mon, 02 Jan 2023 09:39:13 -0700 Content-Disposition: inline In-Reply-To: <87mt71dxhf.fsf@gmx.de> 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:252346 Archived-At: * Michael Albinus [2023-01-02 13:48]: > 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. 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. Anyway, when editing with sudo I see this file: lrwxrwxrwx 1 root root 46 Jan 2 19:27 .#at.deny -> admin@protected.1904257840789327597 which is dangling symlink, do you know about it? Is it bug? -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/