From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: egarrulo Newsgroups: gmane.emacs.help Subject: Re: Tramp: changing umask? Date: Wed, 8 Jun 2016 21:37:38 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1465414833 4671 80.91.229.3 (8 Jun 2016 19:40:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2016 19:40:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 08 21:40:28 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bAjL0-00008h-Jf for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jun 2016 21:40:26 +0200 Original-Received: from localhost ([::1]:59176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAjKz-0000dX-Mu for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jun 2016 15:40:25 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-X-Trace: individual.net a8i4GzIaWcNBiGZCVc7qTwzxUo1C+fNJlvRubT8mGABsp0LCuW Cancel-Lock: sha1:klJESVnL8rndDs53N21uLNTkYO4= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 In-Reply-To: Original-Xref: usenet.stanford.edu gnu.emacs.help:218068 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110377 Archived-At: On 08/06/16 17:20, Barry Margolin wrote: > In article , > egarrulo wrote: > >> When I create a file with C-x C-f (ido-find-file) in Tramp, Tramp >> creates the file with 0664 permissions instead of 0644 permissions. >> >> Here is the relevant configuration: >> >> (setq tramp-default-user "myuser") >> (require 'tramp) >> >> How can I make Tramp create new files with 0644 permissions? Thanks. > > It sounds like the target user's umask is different from your umask. Thanks for your suggestion. Indeed the user's umask is 0002, which explains the 0664 permissions. Can I change the umask from Tramp before creating/saving files?