Content-type: text/html Man page of rhosts

rhosts

Section: Devices and Network Interfaces (4)
Index Return to Main Contents
 

NAME

rhosts, .rhosts - Specifies remote users that can use a local user account  

SYNOPSIS

$HOME/.rhosts  

DESCRIPTION

The .rhosts file contains a list of remote users who are not required to supply a login password when they execute the rcp, rlogin, and rsh commands using a local user account. This file is a hidden file in your home directory and must be owned by you or by the root user. The permissions of the .rhosts file should be set to 600 (read and write by owner only). Each entry in the file is of the following form: host [user]

where: The name of the remote host. If the remote host is in a different domain than the local host, the full domain name must be specified. The login name of the remote user. This field is optional. If this field is not specified, any user on the specified remote host is exempt from providing a password, and is assumed to have the same username on both the local and remote hosts.

Optionally, an NIS netgroup name can be specified for the host name, user name, or both.

Entries in the .rhosts file are either positive or negative. Positive entries allow access; negative entries deny access. The following entries are positive: hostname username [email protected]

In addition, the plus sign (+) can be used in place of the hostname or username. In place of the hostname, it means any remote host. In place of the username, it means any user.

The following entries are negative: -hostname -username [email protected]  

EXAMPLES

The following sample entries in the /u/chen/.rhosts file on host zeus allow users moshe and pierre at remote host venus and user robert at the hosts specified in the NIS netgroup chicago to log in to user chen's home directory on host zeus: venus moshe venus pierre [email protected] robert  

FILES

Specifies remote users who can use a local user account.  

RELATED INFORMATION

Commands: rcp(1), rlogin(1), rsh(1).

Functions: ruserok(3).

Files: hosts.equiv(4), netgroup(4).

Functions: rcmd(3). delim off


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
FILES
RELATED INFORMATION

This document was created by man2html, using the manual pages.
Time: 02:40:06 GMT, October 02, 2010