1in.rexecd(1M)           System Administration Commands           in.rexecd(1M)
2
3
4

NAME

6       in.rexecd, rexecd - remote execution server
7

SYNOPSIS

9       in.rexecd
10
11

DESCRIPTION

13       in.rexecd  is  the  server  for the rexec(3SOCKET) routine.  The server
14       provides remote execution facilities with authentication based on  user
15       names   and  passwords.  It  is  invoked  automatically  as  needed  by
16       inetd(1M), and then executes the following protocol:
17
18           1.     The server reads characters from the socket  up  to  a  null
19                  (\0)  byte.  The resultant string is interpreted as an ASCII
20                  number, base 10.
21
22           2.     If the number received in step 1 is non-zero, it  is  inter‐
23                  preted  as  the port number of a secondary stream to be used
24                  for the stderr. A second connection is then created  to  the
25                  specified port on the client's machine.
26
27           3.     A  null  terminated  user  name  of at most 16 characters is
28                  retrieved on the initial socket.
29
30           4.     A null terminated password  of  at  most  16  characters  is
31                  retrieved on the initial socket.
32
33           5.     A  null  terminated  command  to  be  passed  to  a shell is
34                  retrieved on the initial socket.  The length of the  command
35                  is  limited  by  the upper bound on the size of the system's
36                  argument list.
37
38           6.     rexecd then validates the user as is done at login time and,
39                  if  the authentication was successful, changes to the user's
40                  home directory, and establishes the user and  group  protec‐
41                  tions of the user. If any of these steps fail the connection
42                  is aborted and a diagnostic message is returned.
43
44           7.     A null byte is returned on the  connection  associated  with
45                  the  stderr  and  the  command  line is passed to the normal
46                  login shell of the user.  The  shell  inherits  the  network
47                  connections established by rexecd.
48

USAGE

50       in.rexecd and rexecd are IPv6-enabled. See ip6(7P).
51

ATTRIBUTES

53       See attributes(5) for descriptions of the following attributes:
54
55
56
57
58       ┌─────────────────────────────┬─────────────────────────────┐
59       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
60       ├─────────────────────────────┼─────────────────────────────┤
61       │Availability                 │SUNWrcmds                    │
62       └─────────────────────────────┴─────────────────────────────┘
63

SEE ALSO

65       svcs(1),    inetd(1M),    inetadm(1M),    svcadm(1M),   rexec(3SOCKET),
66       attributes(5), smf(5), ip6(7P)
67

DIAGNOSTICS

69       All diagnostic messages are returned on the connection associated  with
70       the stderr, after which any network connections are closed. An error is
71       indicated by a leading byte with a value of 1 (0 is returned in step  7
72       above  upon successful completion of all the steps prior to the command
73       execution).
74
75       username too long       The name is longer than 16 characters.
76
77
78       password too long       The password is longer than 16 characters.
79
80
81       command too long        The command line passed exceeds the size of the
82                               argument list (as configured into the system).
83
84
85       Login incorrect.        No  password  file  entry  for  the  user  name
86                               existed.
87
88
89       Password incorrect.     The wrong password was supplied.
90
91
92       No remote directory.    The chdir command to the home directory failed.
93
94
95       Try again.              A fork by the server failed.
96
97
98       /usr/bin/sh: ...        The user's login shell could not be started.
99
100

NOTES

102       The in.rexecd service is managed by the  service  management  facility,
103       smf(5), under the service identifier:
104
105         svc:/network/rexec:default
106
107
108
109
110       Administrative actions on this service, such as enabling, disabling, or
111       requesting restart, can be performed using  svcadm(1M).  Responsibility
112       for  initiating  and restarting this service is delegated to inetd(1M).
113       Use inetadm(1M) to make configuration changes and to view configuration
114       information for this service. The service's status can be queried using
115       the svcs(1) command.
116
117
118
119SunOS 5.11                        4 Nov 2004                     in.rexecd(1M)
Impressum