Tilmann Singer <[email protected]> writes: > Hi,
Hi Til, > I want to connect to a host with ssh, sudo to another user, then run a > shell command as this user. The user being sudo-ed to has a ~/.profile > which needs to be sourced to set up the correct PATH. > > How can I invoke Tramp so that it starts a login shell, e.g. with `sudo > -i`, or so that it sources the ~/.profile through some other mechanism? If it is just because of the PATH setting, I recommend to add tramp-own-remote-path to tramp-remote-path, like --8<---------------cut here---------------start------------->8--- (add-to-list 'tramp-remote-path 'tramp-own-remote-path) --8<---------------cut here---------------end--------------->8--- See (info "(tramp) Remote programs") > cheers, Til Best regards, Michael.
