'\" te .\" Copyright 1989 AT&T .\" Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. .TH in.rexecd 1M "7 Feb 2012" "SunOS 5.11" "System Administration Commands" .SH NAME in.rexecd, rexecd \- remote execution server .SH SYNOPSIS .LP .nf \fBin.rexecd\fR .fi .SH DESCRIPTION .sp .LP \fBin.rexecd\fR is the server for the \fBrexec\fR(3SOCKET) routine. The server provides remote execution facilities with authentication based on user names and passwords. It is invoked automatically as needed by \fBinetd\fR(1M), and then executes the following protocol: .RS +4 .TP 1. The server reads characters from the socket up to a null (\fB\e0\fR) byte. The resultant string is interpreted as an \fBASCII\fR number, base 10. .RE .RS +4 .TP 2. If the number received in step 1 is non-zero, it is interpreted as the port number of a secondary stream to be used for the \fBstderr\fR. A second connection is then created to the specified port on the client's machine. .RE .RS +4 .TP 3. A null terminated user name of at most 16 characters is retrieved on the initial socket. .RE .RS +4 .TP 4. A null terminated password of at most 16 characters is retrieved on the initial socket. .RE .RS +4 .TP 5. A null terminated command to be passed to a shell is retrieved on the initial socket. The length of the command is limited by the upper bound on the size of the system's argument list. .RE .RS +4 .TP 6. \fBrexecd\fR then validates the user as is done at login time and, if the authentication was successful, changes to the user's home directory, and establishes the user and group protections of the user. If any of these steps fail the connection is aborted and a diagnostic message is returned. .RE .RS +4 .TP 7. A null byte is returned on the connection associated with the \fBstderr\fR and the command line is passed to the normal login shell of the user. The shell inherits the network connections established by \fBrexecd\fR. .RE .SH USAGE .sp .LP \fBin.rexecd\fR and \fBrexecd\fR are IPv6-enabled. See \fBip6\fR(7P). .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Availabilityservice/network/network-servers .TE .SH SEE ALSO .sp .LP \fBsvcs\fR(1), \fBinetd\fR(1M), \fBinetadm\fR(1M), \fBsvcadm\fR(1M), \fBrexec\fR(3SOCKET), \fBattributes\fR(5), \fBsmf\fR(5), \fBip6\fR(7P) .SH DIAGNOSTICS .sp .LP All diagnostic messages are returned on the connection associated with the \fBstderr\fR, after which any network connections are closed. An error is indicated by a leading byte with a value of 1 (0 is returned in step 7 above upon successful completion of all the steps prior to the command execution). .sp .ne 2 .mk .na \fB\fBusername too long\fR\fR .ad .RS 24n .rt The name is longer than 16 characters. .RE .sp .ne 2 .mk .na \fB\fBpassword too long\fR\fR .ad .RS 24n .rt The password is longer than 16 characters. .RE .sp .ne 2 .mk .na \fB\fBcommand too long\fR\fR .ad .RS 24n .rt The command line passed exceeds the size of the argument list (as configured into the system). .RE .sp .ne 2 .mk .na \fB\fBLogin incorrect.\fR\fR .ad .RS 24n .rt No password file entry for the user name existed. .RE .sp .ne 2 .mk .na \fB\fBNo remote directory.\fR\fR .ad .RS 24n .rt The \fBchdir\fR command to the home directory failed. .RE .sp .ne 2 .mk .na \fB\fBTry again.\fR\fR .ad .RS 24n .rt A \fBfork\fR by the server failed. .RE .sp .ne 2 .mk .na \fB\fB/usr/bin/sh: ...\fR\fR .ad .RS 24n .rt The user's login shell could not be started. .RE .SH NOTES .sp .LP The \fBin.rexecd\fR service is managed by the service management facility, \fBsmf\fR(5), under the service identifier: .sp .in +2 .nf svc:/network/rexec:default .fi .in -2 .sp .sp .LP Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using \fBsvcadm\fR(1M). Responsibility for initiating and restarting this service is delegated to \fBinetd\fR(1M). Use \fBinetadm\fR(1M) to make configuration changes and to view configuration information for this service. The service's status can be queried using the \fBsvcs\fR(1) command.