RHOSTS(5) BSD File Formats Manual RHOSTS(5)NAME
rhosts -- allow rlogin, rsh and rcp connections to the local machine without a password.
SYNOPSIS
$HOME/.rhosts
DESCRIPTION
The .rhosts file can allow specific remote users and/or hosts to execute commands on the local machine. The file uses the following format:
host [user | @group]
Such an entry grants password-free access for the user with the login name user from host. If no user is specified, the user must have the
same login name on the remote host and the local host. For security reasons you should always use the FQDN of the hostname and not the short
hostname. Netgroups can be specified by preceeding the group by an @ sign.
The .rhosts file must be owned by the user or root, and writable only by the owner.
SEE ALSO rsh(1), rlogin(1), rcp(1).
September 9, 2019
Check Out this Related Man Page
rhosts(4) Kernel Interfaces Manual rhosts(4)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.
The .rhosts file is a hidden file in your home directory. It must be owned by you or the root user and it must not be writable by group or
world, otherwise, it is not used. Moreover, although it is not required, it is sensible to set the permissions of the file to 600, so the
file is not readable by group or world.
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 speci-
fied. 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 +@netgroup
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 -@netgroup
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 +@chicago
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
rhosts(4)
Hi
I'm trying to automatically run a command on a UNIX (AIX) machine from a Windows NT 4 machine. I can do this manually using the 'rexec' or 'rsh' command but I need an automatic login (on the AIX). In the manual I've found that there should be a '.rhosts' file on the Unix machine in the... (1 Reply)
1. is there anyone know what is the record format for file .rhosts ?
2. where to put .rhosts file ? is it on caller or on callee ?
3. will remsh command works if callee is not unix platform (say AS400) ?
4. best regards, Yatno (4 Replies)
Hello,
I'm going to use the remote tape via rsh , I think that all the necessary process have been done as below:
(suppose the machine name that want to use tape is : m1
& the source machine is: m2 )
1-in m2 machine i add: +
m1 in .rhosts... (8 Replies)
Hello,
Pls i need to copy some data from AIX Unix 4.3 to a SCO Openserve 5.0.5 using rcp command. But i keep on having permission error. WHAT IS THE SOLTION OR WHAT COMMAND CAN I USE AGAIN (4 Replies)
Hello all,
Ok. Here it the scope I have two Redhat 7.2 machine which I use to test things on. I have a home directory which is NFS mounted via NIS. I have a .rhosts file in the directory with the name of the machine and username, with permission 600. Be when I try to run a rsh command I get... (6 Replies)
Hi all,
Thanks for reading and any susequente posts....
... I am running a RedHat Ent 3 server. Anyhow I have to do an rlogin to install some software on the box. The problem is that the solaris box I am trying to do the install from carn't get an rlogin. I have tested this with other... (1 Reply)
Hi All,
I have one problem related to /.rhosts file.
According to my understanding, /.rhosts file is used for "rsh". What will happen if I have duplicate entries in this file?
e.g> my .rhosts file looks like
Code:
wcars42g
wcars89j
wcars42g
wcars42b
wcars42b
Will duplicate entries... (1 Reply)
Hi,
I forgot how to start a new thread. :(
Can somebody please guide me?
I have one problem related to /.rhosts file.
According to my understanding, /.rhosts file is used for "rsh". What will happen if I have duplicate entries in this file?
e.g> my .rhosts file looks like
wcars42g... (2 Replies)
Hi All,
I have a station in solaris 10 in a environnemet NIS. after reboot of the station the file ". rhosts" has the UID / GID nobody.
Could you please help me to find the solution?
Thx.
Vince (0 Replies)
I have a user who has "+ +" at the top of his .rhosts file. He cannot "rsh NODE date" to a different box ( both are RHEL 5.4 ). If I remove the "+ +" then the "RSH" works. I have correct settings of node names/user in the .rhosts file.
I even tried adding to the second box's... (3 Replies)
In the following Unix Tip from Unix Guru Universe, are there some typos?
Specifically, should:
"From hosts(user:deepak)" be "From host2(user:deepak)"? (I'm almost 100% certain it should)
"rlogin hosts.domain.com -l paul" be "rlogin host2.domain.com -l paul"?
Some related... (0 Replies)