From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Weird tramp scp permissions issue with Date: Sun, 16 Nov 2008 19:59:48 +0100 Message-ID: <87bpwfqyxn.fsf@gmx.de> References: <8C288EF2-E676-4224-9202-37A88D9B60A3@digg.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226862048 14954 80.91.229.12 (16 Nov 2008 19:00:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Nov 2008 19:00:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ian Eure Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 16 20:01:51 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L1msY-0005Xs-4S for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Nov 2008 20:01:50 +0100 Original-Received: from localhost ([127.0.0.1]:43412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1mrP-00056H-VO for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Nov 2008 14:00:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1mqh-0004nv-G2 for help-gnu-emacs@gnu.org; Sun, 16 Nov 2008 13:59:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1mqf-0004nL-S8 for help-gnu-emacs@gnu.org; Sun, 16 Nov 2008 13:59:55 -0500 Original-Received: from [199.232.76.173] (port=46201 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1mqf-0004nE-Nl for help-gnu-emacs@gnu.org; Sun, 16 Nov 2008 13:59:53 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:51221) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L1mqf-0001zy-6J for help-gnu-emacs@gnu.org; Sun, 16 Nov 2008 13:59:53 -0500 Original-Received: (qmail invoked by alias); 16 Nov 2008 18:59:50 -0000 Original-Received: from p57A21363.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.19.99] by mail.gmx.net (mp068) with SMTP; 16 Nov 2008 19:59:50 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+FqbwJPZaFtZVrN9keAo7foYK32W2rzil0ZlFRPq DL3mol9MTXopHC In-Reply-To: <8C288EF2-E676-4224-9202-37A88D9B60A3@digg.com> (Ian Eure's message of "Fri, 7 Nov 2008 09:30:57 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.66 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59839 Archived-At: Ian Eure writes: > Any file I create on a remote host using tramp's scp method gets a > mode of 0600, rather than the 0644 I would like. If I use the (slower) > ssh method, the file gets the correct mode. > > What seems to be happening is that the local file gets created with > 0600, which is preserved when it's SCP'd over. Indeed, 'tramp-methods > shows that the `-p' argument is passed to scp, which does exactly > this. > > My umask is 0022 on both ends, which is correct. So tramp seems to be > creating the file with 0600 before it copies it. > > Does anyone know how I can fix this? Which Tramp version do you use? With Tramp 2.1.15-pre, which I have running, I see 0644 permissions for a new file with both ssh and scp methods. > - Ian Best regards, Michael.