[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TRAMP and umask (and git)
From: |
Michael Albinus |
Subject: |
Re: TRAMP and umask (and git) |
Date: |
Sun, 08 Aug 2021 17:15:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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.