diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/tramp.texi | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 8cd0a72fc8c..79185285623 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -721,11 +721,17 @@ the host returned by the function @command{(system-name)}. See | |||
| 721 | Similar to @option{su} method, @option{sudo} uses @command{sudo}. | 721 | Similar to @option{su} method, @option{sudo} uses @command{sudo}. |
| 722 | @command{sudo} must have sufficient rights to start a shell. | 722 | @command{sudo} must have sufficient rights to start a shell. |
| 723 | 723 | ||
| 724 | Due to security reasons, a @option{sudo} connection is disabled after | ||
| 725 | a predefined timeout (5 minutes per default). This can be changed, | ||
| 726 | see @ref{Predefined connection information}. | ||
| 727 | |||
| 724 | @item @option{doas} | 728 | @item @option{doas} |
| 725 | @cindex method @option{doas} | 729 | @cindex method @option{doas} |
| 726 | @cindex @option{doas} method | 730 | @cindex @option{doas} method |
| 727 | 731 | ||
| 728 | This method is used on OpenBSD like the @command{sudo} command. | 732 | This method is used on OpenBSD like the @command{sudo} command. Like |
| 733 | the @option{sudo} method, a @option{sudo} connection is disabled after | ||
| 734 | a predefined timeout. | ||
| 729 | 735 | ||
| 730 | @item @option{sg} | 736 | @item @option{sg} |
| 731 | @cindex method @option{sg} | 737 | @cindex method @option{sg} |
| @@ -1826,6 +1832,24 @@ The parameters @code{tramp-remote-shell} and | |||
| 1826 | @code{tramp-remote-shell-login} in @code{tramp-methods} now have new | 1832 | @code{tramp-remote-shell-login} in @code{tramp-methods} now have new |
| 1827 | values for the remote host. | 1833 | values for the remote host. |
| 1828 | 1834 | ||
| 1835 | A common use case is to override the session timeout of a connection, | ||
| 1836 | that is the time (in seconds) after a connection is disabled, and must | ||
| 1837 | be reestablished. This can be set for any connection; for the | ||
| 1838 | @option{sudo} and @option{doas} methods there exist predefined values. | ||
| 1839 | A value of @code{nil} disables this feature. For example: | ||
| 1840 | |||
| 1841 | @lisp | ||
| 1842 | @group | ||
| 1843 | (add-to-list 'tramp-connection-properties | ||
| 1844 | (list (regexp-quote "@trampfn{sudo,root@@system-name,}") | ||
| 1845 | "session-timeout" 30)) | ||
| 1846 | @end group | ||
| 1847 | @end lisp | ||
| 1848 | |||
| 1849 | @noindent | ||
| 1850 | @samp{system-name} stands here for the host returned by the function | ||
| 1851 | @command{(system-name)}. | ||
| 1852 | |||
| 1829 | @var{property} could also be any property found in | 1853 | @var{property} could also be any property found in |
| 1830 | @code{tramp-persistency-file-name}. | 1854 | @code{tramp-persistency-file-name}. |
| 1831 | 1855 | ||