From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.help Subject: Re: Weird tramp scp permissions issue with Date: Sun, 16 Nov 2008 11:07:44 -0800 Message-ID: References: <8C288EF2-E676-4224-9202-37A88D9B60A3@digg.com> <87bpwfqyxn.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226862507 16502 80.91.229.12 (16 Nov 2008 19:08:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Nov 2008 19:08:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 16 20:09:30 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 1L1mzi-00088C-Qf for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Nov 2008 20:09:15 +0100 Original-Received: from localhost ([127.0.0.1]:37629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1mya-0007Fu-Ee for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Nov 2008 14:08:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1myJ-0007FZ-KW for help-gnu-emacs@gnu.org; Sun, 16 Nov 2008 14:07:47 -0500 Original-Received: from [199.232.76.173] (port=59019 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1myI-0007El-WD for help-gnu-emacs@gnu.org; Sun, 16 Nov 2008 14:07:47 -0500 Original-Received: from zimbra.digg.com ([64.191.203.36]:36790 helo=mail.digg.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L1myJ-0002jc-61 for help-gnu-emacs@gnu.org; Sun, 16 Nov 2008 14:07:47 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id DA5FFA851F0; Sun, 16 Nov 2008 11:07:45 -0800 (PST) X-Virus-Scanned: amavisd-new at X-Spam-Score: -4.564 Original-Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YXdQjtN7vBvi; Sun, 16 Nov 2008 11:07:45 -0800 (PST) Original-Received: from [10.2.16.254] (diggstage01.digg.com [64.191.203.34]) by mail.digg.com (Postfix) with ESMTP id 70695A851DB; Sun, 16 Nov 2008 11:07:45 -0800 (PST) In-Reply-To: <87bpwfqyxn.fsf@gmx.de> X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:59840 Archived-At: On Nov 16, 2008, at 10:59 AM, Michael Albinus wrote: > 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. > I'm using whatever comes with Emacs 22. I installed 2.1.14, and the problem went away. But it also broke vc- dired, and maybe other vc stuff: Loading vc... [2 times] byte-code: Recursive `require' for feature `tramp-compat' The vc-mode stuff from Emacs 23 CVS doesn't work for me, either. - Ian