rlogind

remote execution service 

Service


SYNOPSIS

rlogind [-install] [-remove] [-debug]


DESCRIPTION

rlogind provides remote command shell facilities with authentication based on privileged port numbers from trusted hosts. Like any other 8.1/2012R2/10/2016/2019/11/2022 service, you can use the service utility to start and stop rlogind.

rlogind listens for service requests at port 513. When a service request is received, the following protocol is initiated:

  1. The service checks the client's source port. If the port is not in the range 512-1023, the service aborts the connection.

  2. The server checks the client's source address. If an entry for the client exists in both /etc/hosts and /etc/hosts.equiv, a user logging in from the client is not prompted for a password. If the address is associated with a host for which no corresponding entry exists in /etc/hosts, the user is prompted for a password, regardless of whether or not an entry for the client is present in /etc/hosts.equiv.

  3. rlogind loads the user's profile and runs the command shell specified in the MKS Toolkit control panel applet.

Options

-install 

installs and starts the rlogind service. To start the service without installing it, use the service command:

service start rlogind
-remove 

stops and removes the rlogind service. To stop the service without removing it, use the service command:

service stop rlogind
-debug 

runs rlogind as a normal program in the current console for debugging purposes.

To use this option, you require the following privileges:

Replace a process level token   (SeAssignPrimaryTokenPrivilege)
Increase quotas   (SeIncreaseQuotaPrivilege)
Act as part of the operating system   (SeTcbPrivilege)

If you are lacking any of these privileges, rlogind reports which are missing. You can use priv to add these privileges and then log out and back in. For example, the following assigns all three privileges required for using this option:

priv -a SeAssignPrimaryTokenPrivilege
priv -a SeIncreaseQuotaPrivilege
priv -a SeTcbPrivilege


ENVIRONMENT VARIABLES

TK_RETRY_ON_WSAENOTSOCK 

When this environment varible is set, the rsh, rcp, rexec, and rlogin utilities retry up to five times if they get the WSAENOTSOCK error. The WSAENOTSOCK error is reported as:

An operation was attempted on something that is not a socket


FILES

$ROOTDIR/etc/hosts.equiv 

is the global trusted host-user pairs list.

~/.rhosts 

is the per-user trusted host-user pairs list.


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

>0 

An error occurred.


NOTE

There is a very brief period of time when rlogind is establishing a connection with a client that it is unavailable to establish a new connection with another client. Up to a limited number of connection attempts from other clients are buffered until rlogind is free to service one of them. Additional connection attempts beyond that limit fail. An error results from the client indicating that it was unable to find the rlogind service. In real world usage, this limitation is unlikely to be encountered. This limit is operating system dependent.

If your MKS Toolkit license only includes a single-connection license for the connectivity tools, rlogind only allows one connection at a time.


ACKNOWLEDGEMENT

This product includes software developed by the University of California, Berkeley and its contributors.


PORTABILITY

All UNIX systems. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.


AVAILABILITY

PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
grconfig, rconfig, rexecd, rlogin, rsetup, rshd, service

File Formats:
hosts.equiv, rhosts

MKS Toolkit Connectivity Solutions Guide


PTC MKS Toolkit 10.4 Documentation Build 39.