diff options
-rw-r--r-- | src/lib/libc/net/rcmd.3 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/lib/libc/net/rcmd.3 b/src/lib/libc/net/rcmd.3 index 50e30f7416..2081a76446 100644 --- a/src/lib/libc/net/rcmd.3 +++ b/src/lib/libc/net/rcmd.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: rcmd.3,v 1.4 1996/08/19 08:29:37 tholo Exp $ | 1 | .\" $OpenBSD: rcmd.3,v 1.5 1996/09/01 22:33:04 millert Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1983, 1991, 1993 | 3 | .\" Copyright (c) 1983, 1991, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
@@ -56,7 +56,12 @@ The | |||
56 | function | 56 | function |
57 | is used by the super-user to execute a command on | 57 | is used by the super-user to execute a command on |
58 | a remote machine using an authentication scheme based | 58 | a remote machine using an authentication scheme based |
59 | on reserved port numbers. | 59 | on reserved port numbers. If the user is not the super-user, |
60 | .Fn rcmd | ||
61 | will invoke | ||
62 | .Xr rcmdsh 3 | ||
63 | to run the command via | ||
64 | .Xr rsh 1 . | ||
60 | The | 65 | The |
61 | .Fn rresvport | 66 | .Fn rresvport |
62 | function | 67 | function |
@@ -88,6 +93,9 @@ is set to the standard name of the host | |||
88 | and a connection is established to a server | 93 | and a connection is established to a server |
89 | residing at the well-known Internet port | 94 | residing at the well-known Internet port |
90 | .Fa inport . | 95 | .Fa inport . |
96 | If the user is not the super-user, the only valid port is | ||
97 | .Li shell/tcp , | ||
98 | (usually port 514). | ||
91 | .Pp | 99 | .Pp |
92 | If the connection succeeds, | 100 | If the connection succeeds, |
93 | a socket in the Internet domain of type | 101 | a socket in the Internet domain of type |
@@ -119,6 +127,9 @@ command) will be made the same as the | |||
119 | and no | 127 | and no |
120 | provision is made for sending arbitrary signals to the remote process, | 128 | provision is made for sending arbitrary signals to the remote process, |
121 | although you may be able to get its attention by using out-of-band data. | 129 | although you may be able to get its attention by using out-of-band data. |
130 | Note that if the user is not the super-user, | ||
131 | .Fa fd2p | ||
132 | must be 0. | ||
122 | .Pp | 133 | .Pp |
123 | The protocol is described in detail in | 134 | The protocol is described in detail in |
124 | .Xr rshd 8 . | 135 | .Xr rshd 8 . |
@@ -196,6 +207,7 @@ is overloaded to mean ``All network ports in use.'' | |||
196 | .Xr rsh 1 , | 207 | .Xr rsh 1 , |
197 | .Xr intro 2 , | 208 | .Xr intro 2 , |
198 | .Xr rexec 3 , | 209 | .Xr rexec 3 , |
210 | .Xr rcmdsh 3 , | ||
199 | .Xr rexecd 8 , | 211 | .Xr rexecd 8 , |
200 | .Xr rlogind 8 , | 212 | .Xr rlogind 8 , |
201 | .Xr rshd 8 | 213 | .Xr rshd 8 |