[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/doc/misc tramp.texi
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] emacs/doc/misc tramp.texi |
Date: |
Sun, 29 Nov 2009 20:40:15 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Michael Albinus <albinus> 09/11/29 20:40:13
Modified files:
doc/misc : tramp.texi
Log message:
* tramp.texi (Remote processes): Improve eshell example with "su"
and "sudo" commands.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/doc/misc/tramp.texi?cvsroot=emacs&r1=1.35&r2=1.36
Patches:
Index: tramp.texi
===================================================================
RCS file: /sources/emacs/emacs/doc/misc/tramp.texi,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- tramp.texi 8 Nov 2009 10:48:41 -0000 1.35
+++ tramp.texi 29 Nov 2009 20:40:12 -0000 1.36
@@ -2584,6 +2584,27 @@
@address@hidden, root, host, /etc} $}
@end example
address@hidden emacs
+Since @value{emacsname} 23.2, @code{eshell} has also an own
+implementation of the @code{su} and @code{sudo} commands. Both
+commands change the default directory of the @file{*eshell*} buffer to
+the value related to the user the command has switched to. This works
+even on remote hosts, adding silently a corresponding entry to the
+variable @code{tramp-default-proxies-alist} (@pxref{Multi-hops}):
+
address@hidden
address@hidden $} cd @trampfn{ssh, user, remotehost, /etc} @key{RET}
address@hidden@trampfn{ssh, user, remotehost, /etc} $} find-file shadow
+File is not readable: @trampfn{ssh, user, remotehost, /etc/shadow}
address@hidden@trampfn{ssh, user, remotehost, /etc} $} sudo find-file shadow
+#<buffer shadow>
address@hidden@trampfn{ssh, user, remotehost, /etc} $} su - @key{RET}
address@hidden@trampfn{su, root, remotehost, /root} $} id @key{RET}
+uid=0(root) gid=0(root) groups=0(root)
address@hidden@trampfn{su, root, remotehost, /root} $}
address@hidden example
address@hidden ifset
+
@anchor{Running a debugger on a remote host}
@subsection Running a debugger on a remote host