From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 22.1.50; insert-file-contents is slow under tramp Date: Mon, 27 Aug 2007 22:37:26 +0200 Message-ID: <87sl64k92x.fsf@gmx.de> References: <87veb6l9b0.fsf@escher.local.home> <46CD98DC.1050701@gmx.at> <87r6lul2fc.fsf@escher.local.home> <46CDC8B3.7000301@gmx.at> <46CDED2B.3080904@gmx.at> <87k5rmkmu0.fsf@escher.local.home> <46CDF5B7.2030201@gmx.at> <87fy2akjzt.fsf@escher.local.home> <87bqcxzeat.fsf@gmx.de> <871wdqlgzz.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188247246 21249 80.91.229.12 (27 Aug 2007 20:40:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2007 20:40:46 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Stephen Berman , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 27 22:40:25 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IPlLF-0000qZ-Of for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2007 22:37:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPlLF-0000Im-5J for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2007 16:37:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IPlLC-0000IJ-Pk for emacs-devel@gnu.org; Mon, 27 Aug 2007 16:37:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IPlL7-0000GM-0v for emacs-devel@gnu.org; Mon, 27 Aug 2007 16:37:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPlL6-0000GJ-S2 for emacs-devel@gnu.org; Mon, 27 Aug 2007 16:37:36 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IPlL5-0005Mn-NE for emacs-devel@gnu.org; Mon, 27 Aug 2007 16:37:36 -0400 Original-Received: (qmail invoked by alias); 27 Aug 2007 20:37:29 -0000 Original-Received: from p57A23F08.dip0.t-ipconnect.de (EHLO localhost.local) [87.162.63.8] by mail.gmx.net (mp018) with SMTP; 27 Aug 2007 22:37:29 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19swKplPPhsuHePrPevBwD6Q6XKtwz0R0e0/wVQmg Xct9wVEiV4kMj3 In-Reply-To: (Stefan Monnier's message of "Mon, 27 Aug 2007 16:11:57 -0400") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77313 gmane.emacs.pretest.bugs:19650 Archived-At: Stefan Monnier writes: > Can you tell me which systems allow you to do that? I know that under *BSD > there were ways to do that, allowed or not depending on some global setting > because such user-transfer of file ownership can be a security hole in > itself. Basically only `root' can use `chown' on modern POSIX > systems, AFAIK. You're right, I've tested under HP-UX 11.11. Here @home, with Ubuntu, it is not permitted (although the chown man page doesn't mention this restriction). Hmm, my proposal would work only when the source file belongs to root, accessed by Tramp. This is the most important case, though. Other temporary files, coming from the local host or a remote host, might be readable for third parties. One could try that all temporary files are only readable for the local user (who needs to access these files for insert-file-contents etc), but this must be checked. Copying without the "-p" option, or so. I will sleep about. Another idea would be a special temp directory as user option, where the user is forced to apply 700 permissions for this directory. > Stefan Best regards, Michael.