From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#38404: 27.0.50; deleting files with ~ on the end with tramp did not work Date: Thu, 28 Nov 2019 13:08:12 +0100 Message-ID: <20191128120812.GB1973@protected.rcdrun.com> References: <20191127163909.GA7483@protected.rcdrun.com> <87fti8qkh4.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="102365"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 38404@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 28 18:53:38 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iaNyz-000QUR-Rm for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Nov 2019 18:53:37 +0100 Original-Received: from localhost ([::1]:51524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaNyy-0001KE-Oc for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Nov 2019 12:53:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44157) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaMm6-00032r-AI for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 11:36:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaMlz-0004co-6w for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 11:36:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53075) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaMlv-0004aB-0T for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 11:36:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaMlu-0005rF-UN for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 11:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Nov 2019 16:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38404 X-GNU-PR-Package: emacs Original-Received: via spool by 38404-submit@debbugs.gnu.org id=B38404.157495895122474 (code B ref 38404); Thu, 28 Nov 2019 16:36:02 +0000 Original-Received: (at 38404) by debbugs.gnu.org; 28 Nov 2019 16:35:51 +0000 Original-Received: from localhost ([127.0.0.1]:59044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iaMlj-0005qP-3O for submit@debbugs.gnu.org; Thu, 28 Nov 2019 11:35:51 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:55135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iaIaq-0005Tb-Q8 for 38404@debbugs.gnu.org; Thu, 28 Nov 2019 07:08:21 -0500 Original-Received: from protected.rcdrun.com ([::ffff:89.164.90.215]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_CBC_SHA1) by stw1.rcdrun.com with UTF8ESMTPSA id 0000000000097C5C.000000005DDFB8AD.00006728; Thu, 28 Nov 2019 05:08:13 -0700 Original-Received: from localhost (localhost [127.0.0.1]) (uid 1001) by protected.rcdrun.com with local id 00000000000CC5CB.000000005DDFB8AC.00000A5F; Thu, 28 Nov 2019 13:08:12 +0100 Content-Disposition: inline In-Reply-To: <87fti8qkh4.fsf@gmx.de> X-Mailman-Approved-At: Thu, 28 Nov 2019 11:35:50 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172613 Archived-At: I did it with ssh as root /ssh:root@example.com:/etc/some/file~ and I could not delete few files, even though permissions were 644 * Michael Albinus [2019-11-28 13:00]: > Jean Louis writes: > > Hi, > > > Deleting file /etc/courier/aliases/20191810~ did not work inside of > > Tramp, there was "permission denied". But other files could be > > deleted. I was root at the time and I could delete any file. When I > > entered with ssh to system as root I could delete the file. With Tramp > > it did not work. > > I cannot repoduce it: > > --8<---------------cut here---------------start------------->8--- > # sudo touch /etc/touch~ > # sudo ls -l /etc/touch~ > -rw-r--r-- 1 root root 0 Nov 28 12:54 /etc/touch~ > # emacs -Q --batch --eval '(delete-file "/ssh:|sudo::/etc/touch~")' > Password for /sudo:root@host: ******** > # sudo ls -l /etc/touch~ > ls: cannot access '/etc/touch~': No such file or directory > --8<---------------cut here---------------end--------------->8--- > > Does the problem also happen for you if you start "emacs -Q"? If yes, > could you pls reproduce it step by step, and show those steps? Pls set > also tramp-verbose to 6, andd show the resulting Tramp debug buffer. > > Best regards, Michael.