> For the complete documentation index, see [llms.txt](https://ivalexev.gitbook.io/rednote/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ivalexev.gitbook.io/rednote/utility/service/r-service-512-513-514.md).

# R-Service (512-513-514)

<details>

<summary>Protocol Information</summary>

R-Services is a suite of hosted services to enable remote access or send commands between Unix hosts over TCP/IP. Just like telnet, r-services transmits without any encryption. It also has inherent problems regarding access control for these protocols. R-services are accessible only through a set of programs known as [r-commands](https://en.wikipedia.org/wiki/Berkeley_r-commands).

The R-commands suite consists of several programs:\
\- rcp (`remote copy`)\
\- rexec (`remote execution`)\
\- rlogin (`remote login`)\
\- rsh (`remote shell`)\
\- rwho (`remote who`)\
\- rstat\
\- ruptime

</details>

## Port

The most interesting are:

<table data-header-hidden><thead><tr><th width="166">Port</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:green;"><strong>512</strong></mark><strong> TCP</strong></td><td>Deamon rexecd, (<strong><code>rexec</code></strong>)</td></tr><tr><td><mark style="color:green;"><strong>513</strong></mark><strong> TCP</strong></td><td>Deamon rlogind (<strong><code>rlogin</code></strong>)</td></tr><tr><td><mark style="color:green;"><strong>514</strong></mark><strong> TCP</strong></td><td>Deamon rshd (<strong><code>rcp</code></strong>, <strong><code>rsh</code></strong>)</td></tr></tbody></table>

## Config File

* `/etc/hosts.equiv` : It contains a list of trusted hosts and is used to grant access to other systems on the network. When users on one of these hosts attempt to access the system, they are automatically granted access without further authentication.

  The **hosts.equiv** file is recognized as the global configuration for all users on a system, while **.rhosts** provides a configuration for each user.

## Interact

Examples of commands:

{% code overflow="wrap" %}

```bash
frlogin <IP> -l <USER>
rwho
rusers -al <IP>
```

{% endcode %}
