[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 22.1.50; insert-file-contents is slow under tramp
From: |
Michael Albinus |
Subject: |
Re: 22.1.50; insert-file-contents is slow under tramp |
Date: |
Mon, 27 Aug 2007 16:53:23 +0200 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) |
Stefan Monnier <address@hidden> writes:
> How can you do that? Let's say I access a file of user BAR from user FOO,
> how would you go about doing it in such a way that user TOTO can never see
> the content of the file? BAR can't use `chown' (unless it's root).
BAR must give away the ownership of the temporary file to FOO. See
this test (BAR is albinus, FOO is hostmann). Any TOTO cannot see the
contents of the file, despite she is root - in this case we can forget
security at all.
# whoami
albinus
# touch stefan
# chmod 0400 stefan
# ll stefan
-r-------- 1 albinus smc3 0 Aug 27 16:36 stefan
# chown hostmann stefan
# ll stefan
-r-------- 1 hostmann smc3 0 Aug 27 16:36 stefan
# cat stefan
cat: stefan: Permission denied
Note that we are speaking about temporary files. Either FOO or BAR is
always me (locally), for the other user I have a Tramp connection
capable to send UNIX commands. I can send commands under both user
permissions in the order I do need. It's a kind of puzzling who must
give ownership to whom (it depends on the copying direction), but it's
a finite number of cases only.
> Stefan
Best regards, Michael.
- Re: 22.1.50; insert-file-contents is slow under tramp, (continued)
- Re: 22.1.50; insert-file-contents is slow under tramp, Stephen Berman, 2007/08/24
- Re: 22.1.50; insert-file-contents is slow under tramp, Stefan Monnier, 2007/08/24
- Re: 22.1.50; insert-file-contents is slow under tramp, Michael Albinus, 2007/08/26
- Re: 22.1.50; insert-file-contents is slow under tramp, David Kastrup, 2007/08/26
- Re: 22.1.50; insert-file-contents is slow under tramp, Michael Albinus, 2007/08/26
- Re: 22.1.50; insert-file-contents is slow under tramp, Stefan Monnier, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, Michael Albinus, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, Stefan Monnier, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, Thien-Thi Nguyen, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, David Kastrup, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp,
Michael Albinus <=
- Re: 22.1.50; insert-file-contents is slow under tramp, Stefan Monnier, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, Michael Albinus, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, Michael Albinus, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, David Kastrup, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, Richard Stallman, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, David Kastrup, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, Richard Stallman, 2007/08/28
- Re: 22.1.50; insert-file-contents is slow under tramp, David Kastrup, 2007/08/28
- Re: 22.1.50; insert-file-contents is slow under tramp, Michael Albinus, 2007/08/28
- Re: 22.1.50; insert-file-contents is slow under tramp, David Kastrup, 2007/08/28