[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.

Attachment: txt9velPDWeKr.txt
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]