home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NETKIT-B.05 / NETKIT-B / NetKit-B-0.05 / rexecd / rexecd.8,v < prev    next >
Encoding:
Text File  |  1994-05-23  |  5.2 KB  |  175 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks
  5.     rzsfl:1.1; strict;
  6. comment    @# @;
  7.  
  8.  
  9. 1.1
  10. date    94.05.23.09.07.53;    author rzsfl;    state Exp;
  11. branches;
  12. next    ;
  13.  
  14.  
  15. desc
  16. @Original
  17. @
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @.\" Copyright (c) 1983, 1991 The Regents of the University of California.
  26. .\" All rights reserved.
  27. .\"
  28. .\" Redistribution and use in source and binary forms, with or without
  29. .\" modification, are permitted provided that the following conditions
  30. .\" are met:
  31. .\" 1. Redistributions of source code must retain the above copyright
  32. .\"    notice, this list of conditions and the following disclaimer.
  33. .\" 2. Redistributions in binary form must reproduce the above copyright
  34. .\"    notice, this list of conditions and the following disclaimer in the
  35. .\"    documentation and/or other materials provided with the distribution.
  36. .\" 3. All advertising materials mentioning features or use of this software
  37. .\"    must display the following acknowledgement:
  38. .\"    This product includes software developed by the University of
  39. .\"    California, Berkeley and its contributors.
  40. .\" 4. Neither the name of the University nor the names of its contributors
  41. .\"    may be used to endorse or promote products derived from this software
  42. .\"    without specific prior written permission.
  43. .\"
  44. .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  45. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  46. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  47. .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  48. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  49. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  50. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  51. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  52. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  53. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  54. .\" SUCH DAMAGE.
  55. .\"
  56. .\"     from: @@(#)rexecd.8    6.5 (Berkeley) 3/16/91
  57. .\"    $Id: rexecd.8,v 1.2 1993/08/01 07:40:04 mycroft Exp $
  58. .\"
  59. .Dd March 16, 1991
  60. .Dt REXECD 8
  61. .Os BSD 4.2
  62. .Sh NAME
  63. .Nm rexecd
  64. .Nd remote execution server
  65. .Sh SYNOPSIS
  66. .Nm rexecd
  67. .Sh DESCRIPTION
  68. .Nm Rexecd
  69. is the server for the 
  70. .Xr rexec 3
  71. routine.  The server provides remote execution facilities
  72. with authentication based on user names and
  73. passwords.
  74. .Pp
  75. .Nm Rexecd
  76. listens for service requests at the port indicated in
  77. the ``exec'' service specification; see
  78. .Xr services 5 .
  79. When a service request is received the following protocol
  80. is initiated:
  81. .Bl -enum
  82. .It
  83. The server reads characters from the socket up
  84. to a NUL
  85. .Pq Ql \e0
  86. byte.  The resultant string is
  87. interpreted as an
  88. .Tn ASCII
  89. number, base 10.
  90. .It 
  91. If the number received in step 1 is non-zero,
  92. it is interpreted as the port number of a secondary
  93. stream to be used for the 
  94. .Em stderr .
  95. A second connection is then created to the specified
  96. port on the client's machine.
  97. .It
  98. A NUL terminated user name of at most 16 characters
  99. is retrieved on the initial socket.
  100. .It
  101. A NUL terminated, unencrypted password of at most
  102. 16 characters is retrieved on the initial socket.  
  103. .It
  104. A NUL terminated command to be passed to a
  105. shell is retrieved on the initial socket.  The length of
  106. the command is limited by the upper bound on the size of
  107. the system's argument list.  
  108. .It
  109. .Nm Rexecd
  110. then validates the user as is done at login time
  111. and, if the authentication was successful, changes
  112. to the user's home directory, and establishes the user
  113. and group protections of the user.
  114. If any of these steps fail the connection is
  115. aborted with a diagnostic message returned.
  116. .It
  117. A NUL byte is returned on the initial socket
  118. and the command line is passed to the normal login
  119. shell of the user.  The
  120. shell inherits the network connections established
  121. by
  122. .Nm rexecd .
  123. .El
  124. .Sh DIAGNOSTICS
  125. Except for the last one listed below,
  126. all diagnostic messages are returned on the initial socket,
  127. after which any network connections are closed.
  128. An error is indicated by a leading byte with a value of
  129. 1 (0 is returned in step 7 above upon successful completion
  130. of all the steps prior to the command execution).
  131. .Pp
  132. .Bl -tag -width Ds
  133. .It Sy username too long
  134. The name is
  135. longer than 16 characters.
  136. .It Sy password too long
  137. The password is longer than 16 characters.
  138. .It Sy command too long
  139. The command line passed exceeds the size of the argument
  140. list (as configured into the system).
  141. .It Sy Login incorrect.
  142. No password file entry for the user name existed.
  143. .It Sy Password incorrect.
  144. The wrong was password supplied.
  145. .It Sy \&No remote directory.
  146. The 
  147. .Xr chdir
  148. command to the home directory failed.
  149. .It Sy Try again.
  150. A
  151. .Xr fork
  152. by the server failed.
  153. .It Sy <shellname>: ...
  154. The user's login shell could not be started.
  155. This message is returned
  156. on the connection associated with the
  157. .Em stderr ,
  158. and is not preceded by a flag byte.
  159. .El
  160. .Sh SEE ALSO
  161. .Xr rexec 3
  162. .Sh BUGS
  163. Indicating ``Login incorrect'' as opposed to ``Password incorrect''
  164. is a security breach which allows people to probe a system for users
  165. with null passwords.
  166. .Pp
  167. A facility to allow all data and password exchanges to be encrypted should be
  168. present.
  169. .Sh HISTORY
  170. The
  171. .Nm
  172. command appeared in
  173. .Bx 4.2 .
  174. @
  175.