[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramp multi-hop on localhost: su:sudo
From: |
Michael Albinus |
Subject: |
Re: Tramp multi-hop on localhost: su:sudo |
Date: |
Tue, 09 Jun 2009 06:08:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) |
Jonathan Groll <lists@groll.co.za> writes:
> Only one odd thing - even though I'd already established a tramp
> session as:
> /su:otheruser@localhost:
>
> When I opened my first buffer using "C-x C-f /sudo:root@localhost:"
> (from an active buffer 'owned' by otheruser) it seemed to ask for
> otheruser's password again, i.e. it first asked for a password for
> /su:otheruser@localhost: and then it asked for a password for:
> /sudo:root@localhost:
>
> So in total I ended up entering the password for otheruser 3 times -
> it seems like my first tramp session as 'otheruser' did not get
> "reused". I presume the above is because of the proxy also getting a
> tramp session?
Yes. However, Tramp can reuse passwords. What is your value of
`password-cache-expiry'? Usually, it is the number of seconds how long
passwords are cached. Setting it to `nil' disables the expiration.
See also
(info "(tramp)Password handling")
> Thank you and regards,
> Jonathan.
Best regards, Michael.