04-22-2004
Since you can ping each box from the other, /etc/hosts is ok or not needed. Since you are doing this as root, /etc/hosts.equiv will be ignored.
The .rhosts file must be in the user's home directory. Does root have a home directory of "/" ? Could some boxes be using DNS but not others? Try putting two lines in .rhosts, one fully qualified, and one not:
somehost
somehost.whatever.com
The check is being performed (typically, I don't use SCO) by a routine called ruserok(). Do a "man ruserok" and look for any clues.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm trying to perform a rcp to a remote machine, but it keeps throwing up "LOGNAME: undefined variable" error. When I echo $LOGNAME, it comes up with my username. I have tried setting both the .rhosts and the .hosts.equiv file but to no avail (on both machines as well out of desperation!). Anyone... (8 Replies)
Discussion started by: divid_gil
8 Replies
2. HP-UX
Hi,
Can anyone help me to trace who has made rcp to a HP-UX machine? Is there a file that keeps such records? I know ftp's are recorded in /var/adm/syslog but i only need rcp.Thanks... (0 Replies)
Discussion started by: ilkergu
0 Replies
3. Windows & DOS: Issues & Discussions
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 Dummies Questions & Answers
I am trying to set up RCP so root can access a few machines for file transfer. On the target machine, I have set up a .RHOSTS file that looks like:
10.33.1.59 root
However when I try to use RCP to copy a file to this machine, I get permission denied. Is it possible since another user is... (1 Reply)
Discussion started by: hshapiro
1 Replies
5. UNIX for Dummies Questions & Answers
Hi!
Daily, one of our RedHat Enterprise servers tries to get some files from other RedHat Enterprise server through rcp. Strangely, only the smallest files (about 80K) are transferred, the larger ones (about 40Mb) are not. The rcp doesn't issue any error message, only keeps waiting and waiting... (0 Replies)
Discussion started by: Daishi
0 Replies
6. HP-UX
Hi,
Good day to you all. I am trying to use rcp command to transfer some files on the remote machine. I have already setup .rhosts on my server and on the remote machine. When I do rcp I get this error message
rcmd_af: Lost connection
Is anybody familiar with this one? Thanks in advance.
... (3 Replies)
Discussion started by: sodapop
3 Replies
7. Shell Programming and Scripting
Hi,
What is the difference between scp and rcp and what are the advantages and disadvantages? which one is favor to use than the other between these two?
Thanks (1 Reply)
Discussion started by: royalibrahim
1 Replies
8. Solaris
hi everybody ,
i have a problem with rcp between too hosts :
when i do :
host 1(root) :# rcp file1 host2:/target2
or :
host2 (root):#rcp file2 host1:/target1
i have the following message : permission denied
I made the following changes, but the problem still persists :
I added the... (0 Replies)
Discussion started by: lid-j-one
0 Replies
9. Shell Programming and Scripting
what different between two instruction
cp -r
rcp -r (1 Reply)
Discussion started by: tamer11007
1 Replies
10. Solaris
Hello,
Could anyone help me in explaining what the below command actually means?
rcp file_name user_name@ukpm01:cgiprod:file_name1
I know the rcp format as:-
rcp filename username@servername:directory_location
But what to do with multiple colons?
I am on SunOS Solaris... (2 Replies)
Discussion started by: shubh05
2 Replies
ruserok(3) Library Functions Manual ruserok(3)
NAME
ruserok - Allows servers to authenticate clients
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <unistd.h>
int ruserok ( char *host, int root_user, char *remote_user, char *local_user );
PARAMETERS
Specifies the name of a remote host. Specifies a value to indicate whether the effective user ID of the calling process is that of a root
user. A value of 0 (zero) indicates the process does not have a root user ID. A value of 1 indicates that the process has local root user
privileges, and the /etc/host.equiv file is not checked. Points to a username that is valid at the remote host. Any valid username can be
specified. Points to a username that is valid at the local host. Any valid username can be specified.
DESCRIPTION
The ruserok() (remote command user OK) function allows servers to authenticate clients requesting services.
The hostname must be specified. If the local domain and remote domain are the same, specifying the domain parts is optional. To determine
the domain of the host, use the gethostname() function. The ruserok() function checks for this host in the /etc/host.equiv file. Then, if
necessary, the subroutine checks a file in the user's home directory at the server called $HOME/.rhosts for a host and remote user ID.
RETURN VALUES
The ruserok() function returns 0 (zero) if the subroutine successfully locates the name specified by the host parameter in the
/etc/hosts.equiv file or if the IDs specified by the host and remote_user parameters are found in the $HOME/.rhosts file.
If the name specified by the host parameter was not found, the ruserok() function returns a value of -1.
FILES
Contains service names. Specifies foreign hostnames. Specifies the remote users of a local user account.
RELATED INFORMATION
Functions: gethostname(2), rcmd(3), rresvport(3), sethostname(2)
Commands: rlogind(8), rshd(8) delim off
ruserok(3)