- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rcp command on HP-UX 11v2
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
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
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
тАО05-02-2007 11:17 PM
тАО05-02-2007 11:17 PM
Hello,
We are trying to copy file 'hai' from /home/raja to /home/raja/TESTING on the same host.
We are getting the following error while trying to use rcp command on HP-UX 11V2 version :
$ rcp hai g3u0992:TESTING
rresvport_af: bind: Permission denied
$ cat .rhosts
g3u0992.houston.hp.com
$ uname -a
HP-UX g3u0992 B.11.23 U ia64 2181415107 unlimited-user license
$ hostname
g3u0992
Could you please help us in resolving the error 'rresvport_af: bind: Permission denied' ?
Thanks in advance for your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 11:24 PM
тАО05-02-2007 11:24 PM
Re: rcp command on HP-UX 11v2
rcp does not work and should not be used for copying files on the same host.
The regular cp command should be used.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 11:30 PM
тАО05-02-2007 11:30 PM
Re: rcp command on HP-UX 11v2
Could you please let me know the command I have to use if it is for a remote host?
Thanks in advance for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 11:31 PM
тАО05-02-2007 11:31 PM
Re: rcp command on HP-UX 11v2
man rcp
NAME
rcp - remote file copy
.
.
.DESCRIPTION
The rcp command copies files, directory subtrees, or a combination of files and directory subtrees from one or more systems to another.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 11:43 PM
тАО05-02-2007 11:43 PM
SolutionI also recommend using scp from openssh.
It is a bit slower but it authenticates and does its data stream encrypted.
It is available by searching for secure shell at http://software.hp.com
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 11:57 PM
тАО05-02-2007 11:57 PM
Re: rcp command on HP-UX 11v2
Sasikala,
can you provide the output of these commands?
nslookup g3u0992
whoami
cat /etc/passwd | grep `whoami`
ls -l TESTING
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 12:05 AM
тАО05-03-2007 12:05 AM
Re: rcp command on HP-UX 11v2
Thanks for your help on this.
Please find below the output:
$ nslookup g3u0992
Using /etc/hosts on: g3u0992
looking up FILES
Name: g3u0992.houston.hp.com
Address: 16.232.72.203
Aliases: g3u0992
$ whoami
sathisb
$ cat /etc/passwd | grep `whoami`
sathisb:x:25195:20:Sathis Kumar B,,91-044-39853045-ext.-3045,,sathiskumar.b@hp.com:/home/sathisb:/usr/bin/ksh
$ ls -l TESTING
total 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 12:54 AM
тАО05-03-2007 12:54 AM
Re: rcp command on HP-UX 11v2
The best recommendation would be to install SSH like what Steve mentioned, after which you could use ssh,scp,sftp which would work fine and also is secure.
Don't forget to assign points for the posting, people help using their valuable time and assigning points is a way of appreciation.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 02:05 AM
тАО05-03-2007 02:05 AM
Re: rcp command on HP-UX 11v2
Harry is right: rcp should work, though I'm still not convinced that "eliminating the need to determine if the sending machine is or isn't the same machine as the receiving machine" is much of an advantage. ;^)
What is "rresvport_af"?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 02:11 AM
тАО05-03-2007 02:11 AM
Re: rcp command on HP-UX 11v2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 02:40 AM
тАО05-03-2007 02:40 AM
Re: rcp command on HP-UX 11v2
There are two possible problems:
1.) Getting a privileged local port requires root privileges, so the rcp command must be "setuid root". Many security procedures require the limitation of suid root programs to the bare minimum, so the setuid bit may have been intentionally removed. This effectively disables the rcp and remsh clients.
2.) The number of free privileged ports is relatively small. If there are no local ports available in the 512...1023 range, rcp and remsh cannot open a connection.
The error message "Permission denied" strongly suggests that rcp is disabled by removing the setuid bit. Re-enabling it might be a violation of your local computer security policy.
MK