[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sudo -s -H (was: Tramp 2.0 -> 2.1 migration woes)
From: |
Michael Albinus |
Subject: |
sudo -s -H (was: Tramp 2.0 -> 2.1 migration woes) |
Date: |
Tue, 29 Jan 2008 21:58:38 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) |
"Trent W. Buck" <address@hidden> writes:
> sudo -s (without -H) now aborts connection
> ==========================================
>
> My .bashrc (et al) is mode 0600 (readable only by me). If I run "sudo
> -u zippy -s" in a shell, I get the (ignorable) error
>
> bash: /home/twb/.bashrc: Permission denied
>
> Because $HOME is still /home/twb. For this reason I use sudo -i or
> (on legacy systems) sudo -H -s in interactive shells.
I've added "-H" to the sudo options. "-s" is already there. That shall
provide backwards compatibility on all systems Tramp is running. See the
appended patch.
"sudo -i" might be preferrable for systems which support it, but it
would be additional effort for testing this option. This contradicts
performance consideratons.
Best regards, Michael.
txt9velPDWeKr.txt
Description: Text Data
- Re: Tramp 2.0 -> 2.1 migration woes, (continued)
Shell-command is no longer a shell (was: Tramp 2.0 -> 2.1 migration woes), Michael Albinus, 2008/01/28
sudo -s -H (was: Tramp 2.0 -> 2.1 migration woes),
Michael Albinus <=