Re: How to tell tramp to use login shell in sudo multihop?

Tilmann Singer <[email protected]> Tue, 22 Apr 2025 17:17:05 +0200
Newsgroups gmane.emacs.tramp
Message-ID <[email protected]>
Hello Michael,

I answered too fast – I actually have one use case with not only the
PATH being set in .profile, but other environment variables as well.
Adding tramp-own-remote-path to tramp-remote-path is not sufficient in
this case. Is there way to ask Tramp to do sudo with "sudo -i" or
similar?

I wouldn't mind defining a custom Tramp method in my emacs config, e.g.
"sudoi", but my attempts of doing this have failed so far.


cheers, Til
signature.asc (application/pgp-signature, 853 B)
-----BEGIN PGP SIGNATURE-----

iQJCBAEBCAAsFiEEXoajwlwFeMDQ1WTwuGOMJcql3BYFAmgHsvEOHHRpbHNAdGls
cy5uZXQACgkQuGOMJcql3BZl3g/8CxOLZ7GPiHTpN+Wa+qTN0E5K/VMaHtVJ1ewp
JSq7Ix3YXr3PzYUH5Ww8GZRCK8xYg5KedaNQvDzHmDqM8HQC0tkI1NP4LrYQQUOX
f8sYagQtze0r0nWmtumlrfKePLLG6LP0ufUGcljS2tef7oJ3+KGFg+62FRiwgERV
URgqZ201Qp7nHjGVDbMGkvj4vJmKPCqRUjAhZzZb7NKt8yKP6PDA0swuFRIqioT1
4YpxE1XCNTYys5e69vC8XCaujqfUYx8unCswDbmxqsSFiXx4lN5C4zaVESexef2Q
FH7feMNmohdtgHzg8eu03Tk1JmLki5BrFTKHy9Zq6LvgAw0YFFXr46CwHQe9XVvm
MeQc0orsRbSZc77FoWAvMJW8YnJ8NB9KURdTMJCpE6QMKdZ99HnfCxEDDEEPZgYM
SwZvGO1IXtyaweUHSXLVbzY3qNuLkjaPxLoyr7/ksIhxqlIx13QKfHoAp3JLE35Q
sUG59U1FLpahmWllyi/ihsKtcUDRbke+3FuG2L1LQdG8QaRTo2HPuysRNbV9Ixls
n++xxJtzZd055nSXy9eE5TjB+p7epQJSV8CN3xtIcU3wb20J/T4ZILR7h3wYOEgy
a5LPM639QxkFRyOOkclnB0O94XDPzfdNxpTRTLFg+nikeNRBUWAIWd2SwnnXwTK7
NYcxP2E=
=7UVx
-----END PGP SIGNATURE-----