rexecd.8c
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 8C 代码 · 共 121 行
8C
121 行
.\" SCCSID: @(#)rexecd.8c 8.1 9/11/90.TH rexecd 8c.SH Namerexecd \- remote execution server.SH Syntax.B /etc/rexecd.SH Description.NXR "rexecd server".NXAM "rexec subroutine" "rexecd server".NXR "rexecd server" "protocol"The.PN rexecdcommand is the server for the .MS rexec 3xroutine. The server provides remote execution facilitieswith authentication based on usernames and encryptedpasswords..PPThe.PN rexecdcommand is invoked by .MS inetd 8cwhen it receives a connection on the port indicated inthe ``exec'' service specification. For further information, see.MS services 5 .When a service request is received the following protocolis initiated:.IP 1) 3The server reads characters from the socket upto a null (`\e0') byte. The resultant string isinterpreted as an ASCII number, base 10..IP 2)If the number received in step 1 is non-zero,it is interpreted as the port number of a secondarystream to be used for the .BR stderr .A second connection is then created to the specifiedport on the client's machine..IP 3)A null terminated username of at most 16 charactersis retrieved on the initial socket..IP 4)A null terminated password of at most16 characters is retrieved on the initial socket. .IP 5)A null terminated command to be passed to ashell is retrieved on the initial socket. The length ofthe command is limited by the upper bound on the size ofthe system's argument list. .IP 6)The.PN rexecdcommand then validates the user as is done at login timeand, if the authentication was successful, changesto the user's home directory, and establishes the userand group protections of the user.If any of these steps fail the connection isaborted with a diagnostic message returned..IP 7)A null byte is returned on the connection associatedwith the.B stderr and the command line is passed to the normal loginshell of the user. Theshell inherits the network connections establishedby.PN rexecd ..SH DiagnosticsAll diagnostic messages are returned on the connectionassociated with the.BR stderr ,after which any network connections are closed.An error is indicated by a leading byte with a value of1 (0 is returned in step 7 above upon successful completionof all the steps prior to the command execution)..PP.B "username too long".brThe name islonger than 16 characters..PP.B "password too long".brThe password is longer than 16 characters..PP.B "command too long".brThe command line passed exceeds the size of the argumentlist (as configured into the system)..PP.B "Login incorrect".brNo password file entry for the username existed..PP.B "Password incorrect".brThe wrong was password supplied..PP.B "No remote directory".brThe .PN chdircommand to the home directory failed..PP.B "Try again".brA.I forkby the server failed..PP.B "/bin/sh: ...".brThe user's login shell could not be started..SH Restrictions.NXR "rexecd server" "restricted"Indicating ``Login incorrect'' as opposed to ``Password incorrect''is a security breach which allows people to probe a system for userswith null passwords..SH See Alsoinetd(8c)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?