Sponsored Content
Full Discussion: rcp between two unix machine
Top Forums UNIX for Advanced & Expert Users rcp between two unix machine Post 52009 by nvg_hal on Tuesday 8th of June 2004 04:03:42 AM
Old 06-08-2004
rcp between two unix machines

I have ensured that the Login id on both the system is the same.

I have taken care of entries in .rhosts and /etc/hosts.equiv on both the systems.

I am able to ping, ftp, rlogin between two systems.

YET rcp gives the following error:

remshd:login incorrect.

clue: rlogin is asking for passwd, which should not be the case
 

10 More Discussions You Might Find Interesting

1. IP Networking

rcp from winnt to unix

I try an RCP command from winnt to unix and it works only with 2 pc but with the two others it dosen't work....? MS-DOS return this error msg : 0826-826 The host name for your address is not known. What can I do to resolve my probleme ? Dimitri Geneva - Switzerland (2 Replies)
Discussion started by: dfrangidis
2 Replies

2. UNIX for Dummies Questions & Answers

rcp from Linux/Unix to Win2kserver

I am attempting to use "rcp" to transfer files from a linux box(redhat) to a windows 2000 server box and keep getting a "connection refused" message. Are there any special services/daemons on either side that I need running or any special ports I need open to do this? How about files? I read... (1 Reply)
Discussion started by: mcrouch_2003
1 Replies

3. Windows & DOS: Issues & Discussions

RCP from Sco Unix to Win XP

Hello, Native XP rcp does not have a password prompt as far as I can see. I require a rcp.exe to copy a file from Sco to my XP pc. I did have this program that was part of pcnfs a few years ago. I need to run a scheduled batch job from a command line being. rcp.exe 192.168.5.33 -user root... (0 Replies)
Discussion started by: phil martin
0 Replies

4. UNIX for Advanced & Expert Users

missing Path(in UNIX) when i launch a job on to unix machine using windows SSh

hi i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies

5. UNIX for Advanced & Expert Users

rcp between windows and unix

Anyone experience with using rcp to copy data between windows and Unix (AIX)? (6 Replies)
Discussion started by: rein
6 Replies

6. Shell Programming and Scripting

ftp from windows to unix using a perl script on unix machine

i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
Discussion started by: raksha.s
3 Replies

7. UNIX for Dummies Questions & Answers

What unix machine can this be?

my friend asked me to help him installing some sort of unix app on a server running some soft unix(that server runs MRI thing), and the only thing about that server he knows is OS ver 9.1. So what OS can it be? And normally what type of UNIX OS is installed on a MRI machine? THanks (1 Reply)
Discussion started by: fedora
1 Replies

8. UNIX for Dummies Questions & Answers

Please Help I Can't Install Unix On My Machine

Hi everybody; How are you? I have a machine with these components motherboard Gigabyet processor Intel RAM Kingstone 1GB HDD Westerndigital 160GB DVD ASUS I use this machine for labs, I was running WinXP I am now taking one of Sun's exams, I formated the HDD and get... (3 Replies)
Discussion started by: katilina
3 Replies

9. Shell Programming and Scripting

How to transfer files from unix machine to local machine using shell script?

Hi All.. Am new to Unix!! Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp). And also i have to transfer the input file from the local directory to Unix machine (Server) Any help from you... (1 Reply)
Discussion started by: vidhyaS
1 Replies

10. Shell Programming and Scripting

Unix on machine

Hi All I have window 7 ultimate installed on my machine. i want to install unix just like an application when i click on the application i should work on unix and when i close that application normal window 7 appears Example-: like in case of windows suppose we have installed the sql... (6 Replies)
Discussion started by: parthmittal2007
6 Replies
hosts.equiv(4)							   File Formats 						    hosts.equiv(4)

NAME
hosts.equiv, rhosts - trusted remote hosts and users DESCRIPTION
The /etc/hosts.equiv and .rhosts files provide the "remote authentication" database for rlogin(1), rsh(1), rcp(1), and rcmd(3SOCKET). The files specify remote hosts and users that are considered "trusted". Trusted users are allowed to access the local system without supply- ing a password. The library routine ruserok() (see rcmd(3SOCKET)) performs the authentication procedure for programs by using the /etc/hosts.equiv and .rhosts files. The /etc/hosts.equiv file applies to the entire system, while individual users can maintain their own .rhosts files in their home directories. These files bypass the standard password-based user authentication mechanism. To maintain system security, care must be taken in creating and maintaining these files. The remote authentication procedure determines whether a user from a remote host should be allowed to access the local system with the identity of a local user. This procedure first checks the /etc/hosts.equiv file and then checks the .rhosts file in the home directory of the local user who is requesting access. Entries in these files can be of two forms. Positive entries allow access, while negative entries deny access. The authentication succeeds when a matching positive entry is found. The procedure fails when the first matching nega- tive entry is found, or if no matching entries are found in either file. The order of entries is important. If the files contain both posi- tive and negative entries, the entry that appears first will prevail. The rsh(1) and rcp(1) programs fail if the remote authentication pro- cedure fails. The rlogin program falls back to the standard password-based login procedure if the remote authentication fails. Both files are formatted as a list of one-line entries. Each entry has the form: hostname [username] Hostnames must be the official name of the host, not one of its nicknames. Negative entries are differentiated from positive entries by a `-' character preceding either the hostname or username field. Positive Entries If the form: hostname is used, then users from the named host are trusted. That is, they may access the system with the same user name as they have on the remote system. This form may be used in both the /etc/hosts.equiv and .rhosts files. If the line is in the form: hostname username then the named user from the named host can access the system. This form may be used in individual .rhosts files to allow remote users to access the system as a different local user. If this form is used in the /etc/hosts.equiv file, the named remote user will be allowed to access the system as any local user. netgroup(4) can be used in either the hostname or username fields to match a number of hosts or users in one entry. The form: +@netgroup allows access from all hosts in the named netgroup. When used in the username field, netgroups allow a group of remote users to access the system as a particular local user. The form: hostname +@netgroup allows all of the users in the named netgroup from the named host to access the system as the local user. The form: +@netgroup1 +@netgroup2 allows the users in netgroup2 from the hosts in netgroup1 to access the system as the local user. The special character `+' can be used in place of either hostname or username to match any host or user. For example, the entry + will allow a user from any remote host to access the system with the same username. The entry + username will allow the named user from any remote host to access the system. The entry hostname + will allow any user from the named host to access the system as the local user. Negative Entries Negative entries are preceded by a `-' sign. The form: -hostname will disallow all access from the named host. The form: -@netgroup means that access is explicitly disallowed from all hosts in the named netgroup. The form: hostname -username disallows access by the named user only from the named host, while the form: + -@netgroup will disallow access by all of the users in the named netgroup from all hosts. Search Sequence To help maintain system security, the /etc/hosts.equiv file is not checked when access is being attempted for super-user. If the user attempting access is not the super-user, /etc/hosts.equiv is searched for lines of the form described above. Checks are made for lines in this file in the following order: 1. + 2. +@netgroup 3. -@netgroup 4. -hostname 5. hostname The user is granted access if a positive match occurrs. Negative entries apply only to /etc/hosts.equiv and may be overridden by subse- quent .rhosts entries. If no positive match occurred, the .rhosts file is then searched if the user attempting access maintains such a file. This file is searched whether or not the user attempting access is the super-user. As a security feature, the .rhosts file must be owned by the user who is attempting access. Checks are made for lines in .rhosts in the following order: 1. + 2. +@netgroup 3. -@netgroup 4. -hostname 5. hostname FILES
/etc/hosts.equiv system trusted hosts and users ~/.rhosts user's trusted hosts and users SEE ALSO
rcp(1), rlogin(1), rsh(1), rcmd(3SOCKET), hosts(4), netgroup(4), passwd(4) WARNINGS
Positive entries in /etc/hosts.equiv that include a username field (either an individual named user, a netgroup, or `+' sign) should be used with extreme caution. Because /etc/hosts.equiv applies system-wide, these entries allow one, or a group of, remote users to access the system as any local user. This can be a security hole. For example, because of the search sequence, an /etc/hosts.equiv file consist- ing of the entries + -hostxxx will not deny access to "hostxxx". SunOS 5.10 23 Jun 1997 hosts.equiv(4)
All times are GMT -4. The time now is 09:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy