From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: SU commands from Emacs Date: Sun, 26 Aug 2007 12:55:00 +0200 Message-ID: <87wsvik1kr.fsf@gmx.de> References: <878x8ahxho.fsf@W0053328.mgh.harvard.edu> <87eji1hpmk.fsf@W0053328.mgh.harvard.edu> <87hcmpzbbo.fsf@debby.local.net> <85ir74fvho.fsf@lola.goethe.zz> <87lkc0wc64.fsf@debby.local.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188125725 29604 80.91.229.12 (26 Aug 2007 10:55:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2007 10:55:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, David Kastrup To: Dieter Wilhelm Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 26 12:55:24 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IPFm7-0007Cq-73 for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2007 12:55:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPFm6-00078W-Nu for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2007 06:55:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IPFlp-000777-8P for help-gnu-emacs@gnu.org; Sun, 26 Aug 2007 06:55:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IPFlo-00075i-79 for help-gnu-emacs@gnu.org; Sun, 26 Aug 2007 06:55:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPFlo-00075N-1s for help-gnu-emacs@gnu.org; Sun, 26 Aug 2007 06:55:04 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IPFln-0006Gn-EP for help-gnu-emacs@gnu.org; Sun, 26 Aug 2007 06:55:03 -0400 Original-Received: (qmail invoked by alias); 26 Aug 2007 10:55:02 -0000 Original-Received: from p57A238F8.dip0.t-ipconnect.de (EHLO localhost.local) [87.162.56.248] by mail.gmx.net (mp052) with SMTP; 26 Aug 2007 12:55:02 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+MiyM9HaCMZz9gkiNOrPt6eOPyUacRjD3+XeWCVm Cu6MT3JgnCdxdi In-Reply-To: <87lkc0wc64.fsf@debby.local.net> (Dieter Wilhelm's message of "Sat, 25 Aug 2007 05:00:51 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46858 Archived-At: Dieter Wilhelm writes: > On second thought: shouldn't /su:name@localhost:/dir not be equivalent > to /name@localhost:/dir You can define your own defaults. Check for the variables tramp-default-method, tramp-default-host, tramp-default-user, tramp-default-method-alist, tramp-default-proxies-alist and tramp-default-user-alist in the documentation. Your proposal above is not applicable everywhere. For example, Ubuntu does not allow su for root; it requires sudo. However, you can define it yourself with (add-to-list 'tramp-default-method-alist '("\\`localhost\\'" nil "su")) Best regards, Michael.