From: Jean Louis <bugs@gnu.support>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 38404@debbugs.gnu.org
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 [thread overview]
Message-ID: <20191128120812.GB1973@protected.rcdrun.com> (raw)
In-Reply-To: <87fti8qkh4.fsf@gmx.de>
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 <michael.albinus@gmx.de> [2019-11-28 13:00]:
> Jean Louis <bugs@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@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.
next prev parent reply other threads:[~2019-11-28 12:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-27 16:39 bug#38404: 27.0.50; deleting files with ~ on the end with tramp did not work Jean Louis
2019-11-28 12:00 ` Michael Albinus
2019-11-28 12:08 ` Jean Louis [this message]
2019-11-28 12:10 ` Michael Albinus
2019-11-28 12:12 ` Jean Louis
2019-11-28 12:17 ` Michael Albinus
2020-02-25 13:15 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191128120812.GB1973@protected.rcdrun.com \
--to=bugs@gnu.support \
--cc=38404@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).