GNU bug report logs - #38404
27.0.50; deleting files with ~ on the end with tramp did not work

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Wed, 27 Nov 2019 17:33:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version 27.0.50

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38404 in the body.
You can then email your comments to 38404 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#38404; Package emacs. (Wed, 27 Nov 2019 17:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jean Louis <bugs <at> gnu.support>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 27 Nov 2019 17:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jean Louis <bugs <at> gnu.support>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; deleting files with ~ on the end with tramp did not work
Date: Wed, 27 Nov 2019 17:39:09 +0100

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.


In GNU Emacs 27.0.50 (build 6, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2019-10-08 built on protected.rcdrun.com
Repository revision: 32a67a5cfbfb92a9f76a5caf1c4b84beffcb1d9e
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11907000
System Description: Hyperbola GNU/Linux-libre

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --prefix=/package/text/emacs-2019-10-08 --with-modules
 --without-gpm --with-x-toolkit=lucid
 PKG_CONFIG_PATH=/home/data1/protected/GNUstep/Library/Libraries/pkgconfig:/usr/lib/pkgconfig'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON PDUMPER
LCMS2 GMP

Important settings:
  value of $LC_ALL: de_DE.UTF-8
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-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
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort hashcash mail-extr emacsbug message rmc puny dired
dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache
epa derived epg epg-config gnus-util rmail rmail-loaddefs
text-property-search time-date subr-x seq byte-opt gv bytecomp
byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray 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 threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 46090 5168)
 (symbols 48 6085 1)
 (strings 32 16350 1289)
 (string-bytes 1 523934)
 (vectors 16 9982)
 (vector-slots 8 129955 6542)
 (floats 8 24 22)
 (intervals 56 245 0)
 (buffers 1000 12))

-- 
Thanks,
Jean Louis




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38404; Package emacs. (Thu, 28 Nov 2019 12:02:02 GMT) Full text and rfc822 format available.

Message #8 received at 38404 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Jean Louis <bugs <at> gnu.support>
Cc: 38404 <at> debbugs.gnu.org
Subject: Re: bug#38404: 27.0.50; deleting files with ~ on the end with tramp
 did not work
Date: Thu, 28 Nov 2019 13:00:23 +0100
Jean Louis <bugs <at> gnu.support> 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 <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38404; Package emacs. (Thu, 28 Nov 2019 12:11:01 GMT) Full text and rfc822 format available.

Message #11 received at 38404 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Jean Louis <bugs <at> gnu.support>
Cc: 38404 <at> debbugs.gnu.org
Subject: Re: bug#38404: 27.0.50; deleting files with ~ on the end with tramp
 did not work
Date: Thu, 28 Nov 2019 13:10:03 +0100
Jean Louis <bugs <at> gnu.support> writes:

> I did it with ssh as root /ssh:root <at> example.com:/etc/some/file~
>
> and I could not delete few files, even though permissions were 644

This doesn't tell me anything, sorry. Pls show the debug buffer.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38404; Package emacs. (Thu, 28 Nov 2019 12:19:02 GMT) Full text and rfc822 format available.

Message #14 received at 38404 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Jean Louis <bugs <at> gnu.support>
Cc: 38404 <at> debbugs.gnu.org
Subject: Re: bug#38404: 27.0.50; deleting files with ~ on the end with tramp
 did not work
Date: Thu, 28 Nov 2019 13:17:58 +0100
Jean Louis <bugs <at> gnu.support> writes:

> * Michael Albinus <michael.albinus <at> gmx.de> [2019-11-28 13:10]:
>> Jean Louis <bugs <at> gnu.support> writes:
>>
>> > I did it with ssh as root /ssh:root <at> example.com:/etc/some/file~
>> >
>> > and I could not delete few files, even though permissions were 644
>>
>> This doesn't tell me anything, sorry. Pls show the debug buffer.
>
> How do I do that?

RTFM :-)

In short:

- Apply (setq tramp-verbose 6)
- Rerun your test
- Send the resulting buffer *debug tramp/ssh root <at> host*, preferred as
  attachment

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38404; Package emacs. (Thu, 28 Nov 2019 16:36:02 GMT) Full text and rfc822 format available.

Message #17 received at 38404 <at> debbugs.gnu.org (full text, mbox):

From: Jean Louis <bugs <at> gnu.support>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 38404 <at> debbugs.gnu.org
Subject: Re: 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
I did it with ssh as root /ssh:root <at> example.com:/etc/some/file~

and I could not delete few files, even though permissions were 644

* Michael Albinus <michael.albinus <at> gmx.de> [2019-11-28 13:00]:
> Jean Louis <bugs <at> gnu.support> 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 <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38404; Package emacs. (Thu, 28 Nov 2019 16:36:03 GMT) Full text and rfc822 format available.

Message #20 received at 38404 <at> debbugs.gnu.org (full text, mbox):

From: Jean Louis <bugs <at> gnu.support>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 38404 <at> debbugs.gnu.org
Subject: Re: bug#38404: 27.0.50; deleting files with ~ on the end with tramp
 did not work
Date: Thu, 28 Nov 2019 13:12:29 +0100
* Michael Albinus <michael.albinus <at> gmx.de> [2019-11-28 13:10]:
> Jean Louis <bugs <at> gnu.support> writes:
> 
> > I did it with ssh as root /ssh:root <at> example.com:/etc/some/file~
> >
> > and I could not delete few files, even though permissions were 644
> 
> This doesn't tell me anything, sorry. Pls show the debug buffer.

How do I do that?




Added tag(s) moreinfo. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Thu, 28 Nov 2019 20:16:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38404; Package emacs. (Tue, 25 Feb 2020 13:17:01 GMT) Full text and rfc822 format available.

Message #25 received at 38404 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Jean Louis <bugs <at> gnu.support>
Cc: 38404 <at> debbugs.gnu.org
Subject: Re: bug#38404: 27.0.50; deleting files with ~ on the end with tramp
 did not work
Date: Tue, 25 Feb 2020 14:15:44 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

>>> This doesn't tell me anything, sorry. Pls show the debug buffer.
>>
>> How do I do that?
>
> RTFM :-)
>
> In short:
>
> - Apply (setq tramp-verbose 6)
> - Rerun your test
> - Send the resulting buffer *debug tramp/ssh root <at> host*, preferred as
>   attachment

No answer for months. Well, w/o more information I must close the bug.

Best regards, Michael.




Added tag(s) unreproducible. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Tue, 10 Mar 2020 09:33:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 38404 <at> debbugs.gnu.org and Jean Louis <bugs <at> gnu.support> Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Tue, 10 Mar 2020 09:33:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 07 Apr 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.