From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: TRAMP and umask (and git) Date: Sun, 08 Aug 2021 17:15:10 +0200 Message-ID: <87h7g0rmrl.fsf@gmx.de> References: <87mtptp0o6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7679"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: akater Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 08 17:15:41 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCkWa-0001q0-Qw for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 08 Aug 2021 17:15:40 +0200 Original-Received: from localhost ([::1]:43910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCkWZ-0005DA-0E for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 08 Aug 2021 11:15:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCkWC-0005Cx-Kj for help-gnu-emacs@gnu.org; Sun, 08 Aug 2021 11:15:16 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:42653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCkWA-0007qH-PM for help-gnu-emacs@gnu.org; Sun, 08 Aug 2021 11:15:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628435712; bh=aYb6w/y09Yt94xmaQHGPK7stsYRfvdLWhZoKVSgNkLY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=IIqsepL7R/tNOZIhUUjhU1/Cfq61FBDd1R5WNE0M046TdFnwzRXlfH/beCR8Y6rhb oFWtk7IdX/AhsmgOna6Am0+9Yn2ck6Q7cTGF6oBf2F6yT7m0XYRvek0rqCMB7f4TSg A00qd1kynL4sWCF4GTbg02ay/mrOY1IJA+MNDW4s= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.238.138]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N0oG5-1n6LL03cHt-00wlH9; Sun, 08 Aug 2021 17:15:11 +0200 In-Reply-To: <87mtptp0o6.fsf@gmail.com> (akater's message of "Sat, 07 Aug 2021 18:30:49 +0000") X-Provags-ID: V03:K1:uvKYFXfaXbyv/xn0pon+CRF2iZjTVcnrNHW4OZucKJDRTEvrm/s fKXAD2R+/Kk3DCDQFJST0g/ciiBbchn2T8/y9QhbiwWO3iwYSK7k4RL8A069EKNw+jwtLFs GD9HAPVUU8ns1qq02E5CVSfllT7V43tRhmtigPSWj0AVUqR5dlT8D6BX5+EM52YALHChFdR RWooSo8mOr6ErbA9viNOw== X-UI-Out-Filterresults: notjunk:1;V03:K0:zZOcnV2wH48=:tj8EzTof7zC6mU1kgLJyCQ CJbp+qMuwd07cc0P732mZ8HhHujE3SlSj+W9h8Af+M9U6rLX8R+G8MBkRlVaLayaXiMkQFH7Y 3MFS8d4lihZQr03itR4TXgBWo21+rNvj5cCShkjIrCN4/y+yWw9Zf1zInad5PP+GXAKYfTR83 0NwG/t/1buZ+TjWDWSgqML7DOo/A8HNzgyRHLNpsQ65QSwOzQ9gxmJypTtF2gFloAqhbgAhT3 HGGTBe0SP/FjTja3Uag0qVnoouSSlTqg4KD+ISSgm97Kg36a8L/KmCsNuAaNac+wE43ZEUwHK nwa75fynNhaW2ui0ZYbW7h6SU6AyORe+MpvokXw77HCRX5WpvCgot3rXuxuVtDux/cQ3zlwmw V1jsoeXSaRTRje29Cd4KZUKmgH2h0laNsEM+L0PVzh9YSSw8CTrWJJxh6rFmG9cuoxWSk9Z74 siPY/0OmkxzOkA0/nyxskynXhzgh/qWgJJC3jAP4akI4vLxDBzKZtdviOcH8tWYTGtmNK0ovo /8lOCQCA4d+8tVuEwO9/U4DtOMlUVMl8xLrqAnw43u0Y7G6QmQ43dHefXp5KraH/tlmRUKMO+ t2gVqAFRx9FgwuMpGE9xKnwe1VowzdaVbumlPNvMb1ZAkLkP51V0G3qWRgPjD8vyXPFXGhu49 nPkGKgUsRfyDbl7pzdYBIdzm3vOEoxU/JQ0E2hgftX3FfOPb4E+8aqeYBR2Gpakrlcg1JQ6ut UyZ0H8d8C9PtWyV9eA/yRxHWWv0G1GrDhPYi1OAWO1RUwNeESWHqTZOnPkwpYbnybggV800g Received-SPF: pass client-ip=212.227.17.22; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132420 Archived-At: akater writes: Hi, > There is another suggestion there that recommends to alter x's .profile > and set umask depending on a value passed via > tramp-remote-process-environment. I just altered x's .profile to set > umask *unconditionally*, and it has no effect. sudo requires an additional "-i" argument in order to to run the shell as login shell, reading ~/.profile. So you must teach the "sudo" entry in tramp-methods to add this argument, via tramp-login-args. Furthermore, if x's remote shell is bash or zsh, Tramp tries to avoid reading ~/.profile. See tramp-sh-extra-args. Best regards, Michael.