summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormillert <>1996-09-01 22:33:04 +0000
committermillert <>1996-09-01 22:33:04 +0000
commit775d3a670a4620e3fcabe54a3cd83116e6768724 (patch)
tree41c7adcf0e0a2ee18bd5201ec64f918af81360ca
parent688d1527654fd3ee1e48805dc7cf24fea56aa927 (diff)
downloadopenbsd-775d3a670a4620e3fcabe54a3cd83116e6768724.tar.gz
openbsd-775d3a670a4620e3fcabe54a3cd83116e6768724.tar.bz2
openbsd-775d3a670a4620e3fcabe54a3cd83116e6768724.zip
talk about rcmdsh()
-rw-r--r--src/lib/libc/net/rcmd.316
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
56function 56function
57is used by the super-user to execute a command on 57is used by the super-user to execute a command on
58a remote machine using an authentication scheme based 58a remote machine using an authentication scheme based
59on reserved port numbers. 59on reserved port numbers. If the user is not the super-user,
60.Fn rcmd
61will invoke
62.Xr rcmdsh 3
63to run the command via
64.Xr rsh 1 .
60The 65The
61.Fn rresvport 66.Fn rresvport
62function 67function
@@ -88,6 +93,9 @@ is set to the standard name of the host
88and a connection is established to a server 93and a connection is established to a server
89residing at the well-known Internet port 94residing at the well-known Internet port
90.Fa inport . 95.Fa inport .
96If the user is not the super-user, the only valid port is
97.Li shell/tcp ,
98(usually port 514).
91.Pp 99.Pp
92If the connection succeeds, 100If the connection succeeds,
93a socket in the Internet domain of type 101a socket in the Internet domain of type
@@ -119,6 +127,9 @@ command) will be made the same as the
119and no 127and no
120provision is made for sending arbitrary signals to the remote process, 128provision is made for sending arbitrary signals to the remote process,
121although you may be able to get its attention by using out-of-band data. 129although you may be able to get its attention by using out-of-band data.
130Note that if the user is not the super-user,
131.Fa fd2p
132must be 0.
122.Pp 133.Pp
123The protocol is described in detail in 134The 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