diff options
-rw-r--r-- | src/lib/libc/net/rcmd.3 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libc/net/rcmd.3 b/src/lib/libc/net/rcmd.3 index ccc7294e52..ea71e40d71 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.18 2000/02/23 17:28:25 aaron Exp $ | 1 | .\" $OpenBSD: rcmd.3,v 1.19 2000/04/15 11:46:02 aaron 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. |
@@ -63,7 +63,7 @@ | |||
63 | The | 63 | The |
64 | .Fn rcmd | 64 | .Fn rcmd |
65 | function | 65 | function |
66 | is used by the super-user to execute a command on a remote | 66 | is used by the superuser to execute a command on a remote |
67 | machine using an authentication scheme based on reserved | 67 | machine using an authentication scheme based on reserved |
68 | port numbers. If the calling process is not setuid, the | 68 | port numbers. If the calling process is not setuid, the |
69 | .Ev RSH | 69 | .Ev RSH |
@@ -74,7 +74,7 @@ is | |||
74 | .Xr rcmdsh 3 | 74 | .Xr rcmdsh 3 |
75 | is called instead with the value of | 75 | is called instead with the value of |
76 | .Ev RSH . | 76 | .Ev RSH . |
77 | Alternately, if the user is not the super-user, | 77 | Alternately, if the user is not the superuser, |
78 | .Fn rcmd | 78 | .Fn rcmd |
79 | will invoke | 79 | will invoke |
80 | .Xr rcmdsh 3 | 80 | .Xr rcmdsh 3 |
@@ -123,7 +123,7 @@ is set to the standard name of the host | |||
123 | and a connection is established to a server | 123 | and a connection is established to a server |
124 | residing at the well-known Internet port | 124 | residing at the well-known Internet port |
125 | .Fa inport . | 125 | .Fa inport . |
126 | If the user is not the super-user, the only valid port is | 126 | If the user is not the superuser, the only valid port is |
127 | .Dq shell/tcp | 127 | .Dq shell/tcp |
128 | (usually port 514). | 128 | (usually port 514). |
129 | .Pp | 129 | .Pp |
@@ -150,7 +150,7 @@ is 0, then the standard error (unit 2 of the remote command) will be made the | |||
150 | same as the standard output and no | 150 | same as the standard output and no |
151 | provision is made for sending arbitrary signals to the remote process, | 151 | provision is made for sending arbitrary signals to the remote process, |
152 | although you may be able to get its attention by using out-of-band data. | 152 | although you may be able to get its attention by using out-of-band data. |
153 | Note that if the user is not the super-user, | 153 | Note that if the user is not the superuser, |
154 | .Fa fd2p | 154 | .Fa fd2p |
155 | must be 0. | 155 | must be 0. |
156 | .Pp | 156 | .Pp |
@@ -174,7 +174,7 @@ address bound to it. This socket is suitable for use | |||
174 | by | 174 | by |
175 | .Fn rcmd | 175 | .Fn rcmd |
176 | and several other functions. Privileged Internet ports are those | 176 | and several other functions. Privileged Internet ports are those |
177 | in the range 0 to 1023. Only the super-user | 177 | in the range 0 to 1023. Only the superuser |
178 | is allowed to bind an address of this sort to a socket. | 178 | is allowed to bind an address of this sort to a socket. |
179 | .Fn rresvport | 179 | .Fn rresvport |
180 | and | 180 | and |
@@ -188,10 +188,10 @@ and | |||
188 | .Fn ruserok | 188 | .Fn ruserok |
189 | functions take a remote host's IP address or name, respectively, | 189 | functions take a remote host's IP address or name, respectively, |
190 | two user names and a flag indicating whether the local user's | 190 | two user names and a flag indicating whether the local user's |
191 | name is that of the super-user. | 191 | name is that of the superuser. |
192 | Then, if the user is | 192 | Then, if the user is |
193 | .Em not | 193 | .Em not |
194 | the super-user, it checks the | 194 | the superuser, it checks the |
195 | .Pa /etc/hosts.equiv | 195 | .Pa /etc/hosts.equiv |
196 | file. | 196 | file. |
197 | If that lookup is not done, or is unsuccessful, the | 197 | If that lookup is not done, or is unsuccessful, the |
@@ -200,7 +200,7 @@ in the local user's home directory is checked to see if the request for | |||
200 | service is allowed. | 200 | service is allowed. |
201 | .Pp | 201 | .Pp |
202 | If this file does not exist, is not a regular file, is owned by anyone | 202 | If this file does not exist, is not a regular file, is owned by anyone |
203 | other than the user or the super-user, or is writeable by anyone other | 203 | other than the user or the superuser, or is writeable by anyone other |
204 | than the owner, the check automatically fails. | 204 | than the owner, the check automatically fails. |
205 | Zero is returned if the machine name is listed in the | 205 | Zero is returned if the machine name is listed in the |
206 | .Pa hosts.equiv | 206 | .Pa hosts.equiv |