aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2009-11-29 20:40:51 +0000
committerMichael Albinus2009-11-29 20:40:51 +0000
commit07b6428ccd287539c88f90860026fe91ae012f8b (patch)
tree2722850c1fbb26c823a319ec88a8fd409feb91e8 /doc/misc
parent61eef560b9308934f10a6bb2decef44062b1aa45 (diff)
downloademacs-07b6428ccd287539c88f90860026fe91ae012f8b.tar.gz
emacs-07b6428ccd287539c88f90860026fe91ae012f8b.zip
* tramp.texi (Remote processes): Improve eshell example with "su"
and "sudo" commands.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/tramp.texi21
2 files changed, 26 insertions, 0 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 7b0a82f5ce7..8fd689af944 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12009-11-29 Michael Albinus <michael.albinus@gmx.de>
2
3 * tramp.texi (Remote processes): Improve eshell example with "su"
4 and "sudo" commands.
5
12009-11-28 Chong Yidong <cyd@stupidchicken.com> 62009-11-28 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * semantic.texi (Analyzer Internals): Rename from Analyzer. 8 * semantic.texi (Analyzer Internals): Rename from Analyzer.
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 2c48fe32c55..f0c0b6a3924 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -2584,6 +2584,27 @@ uid=0(root) gid=0(root) groups=0(root)
2584@b{@trampfn{sudo, root, host, /etc} $} 2584@b{@trampfn{sudo, root, host, /etc} $}
2585@end example 2585@end example
2586 2586
2587@ifset emacs
2588Since @value{emacsname} 23.2, @code{eshell} has also an own
2589implementation of the @code{su} and @code{sudo} commands. Both
2590commands change the default directory of the @file{*eshell*} buffer to
2591the value related to the user the command has switched to. This works
2592even on remote hosts, adding silently a corresponding entry to the
2593variable @code{tramp-default-proxies-alist} (@pxref{Multi-hops}):
2594
2595@example
2596@b{~ $} cd @trampfn{ssh, user, remotehost, /etc} @key{RET}
2597@b{@trampfn{ssh, user, remotehost, /etc} $} find-file shadow
2598File is not readable: @trampfn{ssh, user, remotehost, /etc/shadow}
2599@b{@trampfn{ssh, user, remotehost, /etc} $} sudo find-file shadow
2600#<buffer shadow>
2601@b{@trampfn{ssh, user, remotehost, /etc} $} su - @key{RET}
2602@b{@trampfn{su, root, remotehost, /root} $} id @key{RET}
2603uid=0(root) gid=0(root) groups=0(root)
2604@b{@trampfn{su, root, remotehost, /root} $}
2605@end example
2606@end ifset
2607
2587 2608
2588@anchor{Running a debugger on a remote host} 2609@anchor{Running a debugger on a remote host}
2589@subsection Running a debugger on a remote host 2610@subsection Running a debugger on a remote host