Provides the server function for remote command execution.
Note: The rshd daemon is normally started by the inetd daemon. It can also be controlled from the command line, using SRC commands.
/usr/sbin/rshd [ -s ]
The /usr/sbin/rshd daemon is the server for the rcp and rsh commands. The rshd daemon provides remote execution of shell commands. These commands are based on requests from privileged sockets on trusted hosts. The shell commands must have user authentication. The rshd daemon listens at the socket defined in the /etc/services file.
Changes to the rshd daemon can be made using the System Management Interface Tool (SMIT) or System Resource Controller (SRC), by editing the /etc/inetd.conf or /etc/services file. Entering rshd at the command line is not recommended. The rshd daemon is started by default when it is uncommented in the /etc/inetd.conf file.
The inetd daemon get its information from the /etc/inetd.conf file and the /etc/services file.
After changing the /etc/inetd.conf or /etc/services file, run the refresh -s inetd or kill -1 InetdPID command to inform the inetd daemon of the changes to its configuration file.
When the rshd daemon receives a service request, it initiates the following protocol:
The rshd daemon should be controlled using the System Management Interface Tool (SMIT) or by changing the /etc/inetd.conf file. Entering rshd at the command line is not recommended.
The rshd daemon is a subserver of the inetd daemon, which is a subsystem of the System Resource Controller (SRC). The rshd daemon is a member of the tcpip SRC subsystem group. This daemon is enabled by default in the /etc/inetd.conf file and can be manipulated by the following SRC commands:
startsrc | |
Starts a subsystem, group of subsystems, or a subserver. | |
stopsrc | |
Stops a subsystem, group of subsystems, or a subserver. | |
lssrc | |
Gets the status or a subsystem, group or subsystems, or a subserver. |
-s | Turns on socket-level debugging. |
Note: The arguments for the rshd daemon can be specified by using SMIT or by editing the /etc/inetd.conf file.
startsrc -t shellThis command starts the rshd subserver.
stopsrc -t shellThis command allows all pending connections to start and existing connections to complete but prevents new connections from starting.
stopsrc -t -f shellThis command terminates all pending connections and existing connections immediately.
lssrc -t shellThis command returns the daemon's name, process ID, and state (active or inactive).
The kill command, lssrc command, refresh command, rsh command, startsrc command, stopsrc command.
The inetd daemon.
The $HOME/.rhosts file format, /etc/hosts.equiv file format, /etc/inetd.conf file format, /etc/services file format.
The rcmd subroutine.
TCP/IP Daemons in AIX Version 4.3 System Management Guide: Communications and Networks.