diff options
| author | Michael Albinus | 2016-01-15 11:10:37 +0100 |
|---|---|---|
| committer | Michael Albinus | 2016-01-15 11:10:37 +0100 |
| commit | a600f4c69309bf37f67c02cbcc9a9e4ba1e69c76 (patch) | |
| tree | f09fffe5f206e9d2568243d799023cc636ae33ea /doc/misc | |
| parent | de8c5f9db50a22ef5640bb83c0c7c755b78be895 (diff) | |
| download | emacs-a600f4c69309bf37f67c02cbcc9a9e4ba1e69c76.tar.gz emacs-a600f4c69309bf37f67c02cbcc9a9e4ba1e69c76.zip | |
Add "sg" method to Tramp
* doc/misc/tramp.texi (Inline methods): Add "sg" method.
(Customizing Completion): Add function `tramp-parse-etc-group'.
* lisp/net/tramp-sh.el (tramp-methods) <sg>: Add. (Bug#22329)
(tramp-completion-function-alist-sg): New defconst.
(top): Completion function for "sg" is
`tramp-completion-function-alist-sg'.
* lisp/net/tramp.el (tramp-completion-function-alist): Adapt docstring.
(tramp-parse-etc-group, tramp-parse-etc-group-group): New defuns.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/tramp.texi | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 447498a3521..14afb4ad353 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -590,7 +590,6 @@ specifies the file size for such optimization. | |||
| 590 | @command{rsh} is an option for connecting to hosts within local | 590 | @command{rsh} is an option for connecting to hosts within local |
| 591 | networks since @command{rsh} is not as secure as other methods. | 591 | networks since @command{rsh} is not as secure as other methods. |
| 592 | 592 | ||
| 593 | |||
| 594 | @item @option{ssh} | 593 | @item @option{ssh} |
| 595 | @cindex method ssh | 594 | @cindex method ssh |
| 596 | @cindex ssh method | 595 | @cindex ssh method |
| @@ -610,7 +609,6 @@ host name, a hash sign, then a port number). It is the same as passing | |||
| 610 | Connecting to a remote host with @command{telnet} is as insecure | 609 | Connecting to a remote host with @command{telnet} is as insecure |
| 611 | as the @option{rsh} method. | 610 | as the @option{rsh} method. |
| 612 | 611 | ||
| 613 | |||
| 614 | @item @option{su} | 612 | @item @option{su} |
| 615 | @cindex method su | 613 | @cindex method su |
| 616 | @cindex su method | 614 | @cindex su method |
| @@ -627,6 +625,16 @@ the host returned by the function @command{(system-name)}. See | |||
| 627 | Similar to @option{su} method, @option{sudo} uses @command{sudo}. | 625 | Similar to @option{su} method, @option{sudo} uses @command{sudo}. |
| 628 | @command{sudo} must have sufficient rights to start a shell. | 626 | @command{sudo} must have sufficient rights to start a shell. |
| 629 | 627 | ||
| 628 | @item @option{sg} | ||
| 629 | @cindex method sg | ||
| 630 | @cindex sg method | ||
| 631 | |||
| 632 | The @command{sg} program allows editing as different group. The host | ||
| 633 | can be either @samp{localhost} or the host returned by the function | ||
| 634 | @command{(system-name)}. The user name must be specified, but it | ||
| 635 | denotes a group name. See @ref{Multi-hops} for an exception to this | ||
| 636 | behavior. | ||
| 637 | |||
| 630 | @item @option{sshx} | 638 | @item @option{sshx} |
| 631 | @cindex method sshx | 639 | @cindex method sshx |
| 632 | @cindex sshx method | 640 | @cindex sshx method |
| @@ -663,7 +671,6 @@ This method is also similar to @option{ssh}. It uses the | |||
| 663 | 671 | ||
| 664 | This is another method from the Kerberos suite. It behaves like @option{su}. | 672 | This is another method from the Kerberos suite. It behaves like @option{su}. |
| 665 | 673 | ||
| 666 | |||
| 667 | @item @option{plink} | 674 | @item @option{plink} |
| 668 | @cindex method plink | 675 | @cindex method plink |
| 669 | @cindex plink method | 676 | @cindex plink method |
| @@ -677,7 +684,6 @@ session. | |||
| 677 | 684 | ||
| 678 | @option{plink} method supports the @samp{-P} argument. | 685 | @option{plink} method supports the @samp{-P} argument. |
| 679 | 686 | ||
| 680 | |||
| 681 | @item @option{plinkx} | 687 | @item @option{plinkx} |
| 682 | @cindex method plinkx | 688 | @cindex method plinkx |
| 683 | @cindex plinkx method | 689 | @cindex plinkx method |
| @@ -754,7 +760,6 @@ is lost if the file exists only on one side of the connection. | |||
| 754 | 760 | ||
| 755 | This method supports the @samp{-p} argument. | 761 | This method supports the @samp{-p} argument. |
| 756 | 762 | ||
| 757 | |||
| 758 | @item @option{scpx}---@command{ssh} and @command{scp} | 763 | @item @option{scpx}---@command{ssh} and @command{scp} |
| 759 | @cindex method scpx | 764 | @cindex method scpx |
| 760 | @cindex scpx method | 765 | @cindex scpx method |
| @@ -771,7 +776,6 @@ shell prompts that confuses @value{tramp}. | |||
| 771 | 776 | ||
| 772 | This method supports the @samp{-p} argument. | 777 | This method supports the @samp{-p} argument. |
| 773 | 778 | ||
| 774 | |||
| 775 | @item @option{pscp}---@command{plink} and @command{pscp} | 779 | @item @option{pscp}---@command{plink} and @command{pscp} |
| 776 | @item @option{psftp}---@command{plink} and @command{psftp} | 780 | @item @option{psftp}---@command{plink} and @command{psftp} |
| 777 | @cindex method pscp | 781 | @cindex method pscp |
| @@ -795,7 +799,6 @@ session. | |||
| 795 | 799 | ||
| 796 | These methods support the @samp{-P} argument. | 800 | These methods support the @samp{-P} argument. |
| 797 | 801 | ||
| 798 | |||
| 799 | @item @option{fcp}---@command{fsh} and @command{fcp} | 802 | @item @option{fcp}---@command{fsh} and @command{fcp} |
| 800 | @cindex method fcp | 803 | @cindex method fcp |
| 801 | @cindex fcp method | 804 | @cindex fcp method |
| @@ -839,7 +842,6 @@ When @value{tramp} uses @option{ftp}, it forwards requests to whatever | |||
| 839 | ftp program is specified by Ange FTP. This external program must be | 842 | ftp program is specified by Ange FTP. This external program must be |
| 840 | capable of servicing requests from @value{tramp}. | 843 | capable of servicing requests from @value{tramp}. |
| 841 | 844 | ||
| 842 | |||
| 843 | @item @option{smb}---@command{smbclient} | 845 | @item @option{smb}---@command{smbclient} |
| 844 | @cindex method smb | 846 | @cindex method smb |
| 845 | @cindex smb method | 847 | @cindex smb method |
| @@ -911,7 +913,6 @@ access remote files using UNC file names instead of @value{tramp}: | |||
| 911 | UNC file name specification does not allow to specify a different user | 913 | UNC file name specification does not allow to specify a different user |
| 912 | name for authentication like the @command{smbclient} can. | 914 | name for authentication like the @command{smbclient} can. |
| 913 | 915 | ||
| 914 | |||
| 915 | @item @option{adb} | 916 | @item @option{adb} |
| 916 | @cindex method adb | 917 | @cindex method adb |
| 917 | @cindex adb method | 918 | @cindex adb method |
| @@ -993,7 +994,6 @@ but with SSL encryption. Both methods support the port numbers. | |||
| 993 | OBEX is an FTP-like access protocol for cell phones and similar simple | 994 | OBEX is an FTP-like access protocol for cell phones and similar simple |
| 994 | devices. @value{tramp} supports OBEX over Bluetooth. | 995 | devices. @value{tramp} supports OBEX over Bluetooth. |
| 995 | 996 | ||
| 996 | |||
| 997 | @item @option{sftp} | 997 | @item @option{sftp} |
| 998 | @cindex method sftp | 998 | @cindex method sftp |
| 999 | @cindex sftp method | 999 | @cindex sftp method |
| @@ -1054,7 +1054,6 @@ For authentication, this protocol uses only @option{Basic | |||
| 1054 | Authentication} (see RFC 2617). When no port number is specified, this | 1054 | Authentication} (see RFC 2617). When no port number is specified, this |
| 1055 | protocol defaults to @option{8080}. | 1055 | protocol defaults to @option{8080}. |
| 1056 | 1056 | ||
| 1057 | |||
| 1058 | @item @option{socks} | 1057 | @item @option{socks} |
| 1059 | @cindex method socks | 1058 | @cindex method socks |
| 1060 | @cindex socks method | 1059 | @cindex socks method |
| @@ -1478,6 +1477,11 @@ A function dedicated to @file{/etc/hosts} for host names. | |||
| 1478 | 1477 | ||
| 1479 | A function which parses @file{/etc/passwd} files for user names. | 1478 | A function which parses @file{/etc/passwd} files for user names. |
| 1480 | 1479 | ||
| 1480 | @item @code{tramp-parse-etc-group} | ||
| 1481 | @findex tramp-parse-etc-group | ||
| 1482 | |||
| 1483 | A function which parses @file{/etc/group} files for group names. | ||
| 1484 | |||
| 1481 | @item @code{tramp-parse-netrc} | 1485 | @item @code{tramp-parse-netrc} |
| 1482 | @findex tramp-parse-netrc | 1486 | @findex tramp-parse-netrc |
| 1483 | 1487 | ||