From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: XeCycle Newsgroups: gmane.emacs.help Subject: Re: sudo and tramp ask for password twice Date: Sun, 06 May 2012 12:49:19 +0800 Message-ID: <87397drk1c.fsf@xc.laptop> References: <87lil6q67w.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1336280452 10357 80.91.229.3 (6 May 2012 05:00:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 May 2012 05:00:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 06 07:00:51 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SQtaV-0006bv-MS for geh-help-gnu-emacs@m.gmane.org; Sun, 06 May 2012 07:00:51 +0200 Original-Received: from localhost ([::1]:37578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQtaV-00007g-0j for geh-help-gnu-emacs@m.gmane.org; Sun, 06 May 2012 01:00:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQtaP-00007b-AS for help-gnu-emacs@gnu.org; Sun, 06 May 2012 01:00:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQtaM-0007ji-NA for help-gnu-emacs@gnu.org; Sun, 06 May 2012 01:00:44 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:34851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQtaM-0007ja-AF for help-gnu-emacs@gnu.org; Sun, 06 May 2012 01:00:42 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SQtaH-0006Sz-4v for help-gnu-emacs@gnu.org; Sun, 06 May 2012 07:00:37 +0200 Original-Received: from 59.78.37.25 ([59.78.37.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 May 2012 07:00:37 +0200 Original-Received: from XeCycle by 59.78.37.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 May 2012 07:00:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 59.78.37.25 User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:TmVtHnO1XBUSxslmPdzNs99xcA0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84732 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eric Abrahamsen writes: > Hi there, > > I'm using tramp in emacs24, and have a small question about sudo. First > of all, I'm using ido-everywhere, so when I want to open a file I hit > "C-x C-f", then two forward slashes to get to the filesystem root. > > Then it's "sudo:". At this point ido gives me three choices: > > Find file: /sudo:{ . | localhost: | root@} > > Going through "root@" just leads another "localhost", so there doesn't > seem to be any difference there. Is there? I suppose that's what I'd use > if I wanted to access files as a different user altogether. > > So I choose localhost, then go for the file I want. Tramp asks me for my > password once when I choose localhost, and then again the next time it > needs to touch the filesystem (since I'm using ido, that means the first > time it starts completing filepaths). Don't know about the rest of your questions, but isn't sudo method supposed to be used like `/sudo::/etc/conf'? =2D-=20 Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJPpgLSAAoJEI1xjsR3leWRigIIAJpFyFBvud8PinKJpv8N1FJn GtmQ8aQBtOFmW53MQaOMhkgLhoaUunxLgtdONgHZVGH6xtSOP4tDbfrwp5Cr51Ml c48AhSbUfXDgjDFpnXZRuLbD5WW+oo7wfNxHkLAoXDJH7SFvBE69P7rgii0lQUhK UTHrd9woji0XHZ219HmA2x58n6WTrMue1H/5qHJnp2XC39Ua8R60CiGJUaUsLxWz jYazKDukiNLLcvvzgipjUxBXvq8/q+N36odDLgqgjn7W0Yac4mn37hg0/lIG8sg4 aeLbAf5Yfmvn6eVd96/QIySrDOUYKjDnLnX+2M6EeWHT1dBbp/pc4YPlPpZbsXI= =sMT3 -----END PGP SIGNATURE----- --=-=-=--