help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: SU commands from Emacs


From: Michael Albinus
Subject: Re: SU commands from Emacs
Date: Sun, 26 Aug 2007 12:55:00 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

Dieter Wilhelm <dieter@duenenhof-wilhelm.de> 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.




reply via email to

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