[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using sudo with authinfo file.

From: Michael Albinus
Subject: Re: Using sudo with authinfo file.
Date: Tue, 17 May 2011 10:29:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Ted Zlatanov <address@hidden> writes:

> On Mon, 16 May 2011 17:45:17 +0200 Michael Albinus
> <address@hidden> wrote:
> MA> Michael Jacobson <address@hidden> writes:
>>> Any thoughts on why this is not reading my password from the authinfo
>>> file? If I try to connect via "/ssh:" it reads my
>>> authinfo password and connects without prompting me. It is only when
>>> using "/sudo" that the I am prompted.  According to
>>> it seems like this
>>> should work. Any idea what I am doing wrong?
> MA> With Emacs 23, auth-source.el has been added to Emacs core. IIRC, there
> MA> are changes in the interface. Likely, you need to add "port sudo" in
> MA> your ~/authinfo. See 
> <>
> MA> for discussion.
> That node doesn't mention `auth-source-debug' which can be customized to
> t.  The first debugging step should be to set it to t and look at
> *Messages*.  You'll see exactly what auth-source is looking for
> in the authinfo file.

That's always a good start to look for. My guess is, that Tramp might be
looking for "localhost" or something like this not contained in
.authinfo, if you are connecting via a "/sudo::/path" file name. You
might check your settings for `tramp-default-host' or
`tramp-default-proxies-alist'. Or you use explicit user name and host
name for test purposes, like "/sudo:address@hidden:/path".

> Ted

Best regards, Michael.

reply via email to

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