From: Michael Albinus <michael.albinus@gmx.de>
To: akater <nuclearspace@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: TRAMP and umask (and git)
Date: Sun, 08 Aug 2021 17:15:10 +0200 [thread overview]
Message-ID: <87h7g0rmrl.fsf@gmx.de> (raw)
In-Reply-To: <87mtptp0o6.fsf@gmail.com> (akater's message of "Sat, 07 Aug 2021 18:30:49 +0000")
akater <nuclearspace@gmail.com> 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.
next prev parent reply other threads:[~2021-08-08 15:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-07 18:30 TRAMP and umask (and git) akater
2021-08-08 15:15 ` Michael Albinus [this message]
2021-08-08 16:23 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-09-11 13:56 ` akater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h7g0rmrl.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.org \
--cc=nuclearspace@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).