Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rhosts(5) [osx man page]

RHOSTS(5)						      BSD File Formats Manual							 RHOSTS(5)

rhosts -- allow rlogin, rsh and rcp connections to the local machine without a password. SYNOPSIS
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). August 17, 2019

Check Out this Related Man Page

rhosts(4)						     Kernel Interfaces Manual							 rhosts(4)

rhosts, .rhosts - Specifies remote users that can use a local user account SYNOPSIS
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)
Man Page

11 More Discussions You Might Find Interesting

1. IP Networking

Run commands on a UNIX with NT

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)
Discussion started by: Mark Detrez
1 Replies

2. UNIX for Dummies Questions & Answers

remote shell command

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)
Discussion started by: yatno
4 Replies

3. IP Networking

problem using rsh for ordinary users!

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)
Discussion started by: nikk
8 Replies

4. UNIX for Advanced & Expert Users

remote file copy across 2 systems (AIX and SCO)

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)
Discussion started by: aji
4 Replies

5. UNIX for Dummies Questions & Answers

.rhosts and rsh command

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)
Discussion started by: larry
6 Replies

6. Red Hat

rhosts file...

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)
Discussion started by: B14speedfreak
1 Replies

7. Shell Programming and Scripting

duplicate entries /.rhosts file

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)
Discussion started by: akash_mahakode
1 Replies

8. Shell Programming and Scripting

duplicate entries /.rhosts file

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)
Discussion started by: akash_mahakode
2 Replies

9. Solaris

After reboot the .rhosts file in nobody nobody

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)
Discussion started by: Vince78
0 Replies

10. Red Hat

+ + in .rhosts is causing a "Permission Denied"

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)
Discussion started by: rom828
3 Replies

11. IP Networking

rlogin questions (Unix Tip 3426 - June 26, 2012)

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 -l paul" be "rlogin -l paul"? Some related... (0 Replies)
Discussion started by: RandyKramer
0 Replies

Featured Tech Videos