- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem to execute rcp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 05:42 AM
02-13-2002 05:42 AM
Problem to execute rcp
I need a execute the following command:
rcp s2500c:/etc/inetd.old .
the output is:
remshd: getservbyname
I have .rhosts with the following entry:
s2500d
any ideas
MDF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 05:52 AM
02-13-2002 05:52 AM
Re: Problem to execute rcp
your .rhosts should have an entry,
remote_server_name user_name
for eg:.
s2500d root
s2500c root
Also your remote server name should be resolved by your system. Also your local server name and ip address should be resolved by your remote server.
Do a "nslookup" and check,
nslookup
> remote_server_name
> remote_server_ip
> exit
The .rhosts file should exist on the remote server.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 05:58 AM
02-13-2002 05:58 AM
Re: Problem to execute rcp
nslookup will verify.
once you can ping the remote server. the only thing that could stop your rcp'ing (apart from service stopped) is if on the remote server you do not have an entry for the local system in the .rhosts for the user logging in.
if root
remote:> id
root ..
remote:> cat ~/.rhosts
local root
and
local:> id
root ..
local:> cat ~/.rhosts
remote root
for the reverse
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 06:15 AM
02-13-2002 06:15 AM
Re: Problem to execute rcp
or manualy the "/etc/nsswitch.conf" file.
see also:
/etc/hosts.equiv
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 06:29 AM
02-13-2002 06:29 AM
Re: Problem to execute rcp
It seems s2500d was unable to resolve s2500c into an IP address. Verify by using "nslookup s2500c". You may want to add s2500c to /etc/hosts (or DNS). Also check /etc/nsswitch.conf to verify hostname resolution occurs in the appropriate order for your system.
.rhosts must contain the system name the same as it is seen by who. An easy way to determine the name used is to rlogin to the remote system and run "tty" then "who -u" to find the system name associated with the tty. If is is not a name, then you need to add the name to /etc/hosts (or DNS). If is shows as a fully qualified domain name, you need that in .rhosts.
Other issues:
Does .rhosts have appropriate permissions? Is login uncommented in /etc/inetd.conf? If you changed inetd.conf, did you restart inetd by using "inetd -c"?
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 06:50 AM
02-13-2002 06:50 AM
Re: Problem to execute rcp
But I thought I'd mention the basic syntax of your line. If I've seen this correctly..
You syntax says:
rcp s2500c:
But it should say more like
rcp
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 07:39 AM
02-13-2002 07:39 AM
Re: Problem to execute rcp
but the user that is running the command on the local must be allowed login to the remote in order to retrieve the file.
Thus it's more than likely a problem with the ~/.rhosts of the user on the remote system.
what we need is the output of
1>
hostname
on the local system
2>
ping other_hostname
on the local and remote system
3>
the ~/.rhosts entries on both systems.
a simple test is to check if
remsh remote
asks for a password or not.
If it does it's an rhosts problem.. otherwise it's the
1> service is not allowed. (inetsvcs_sec)
2> simply the file does not exist.
3> hostname lookup problem
Later,
Bill