- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problems with 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
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
10-31-2000 09:26 AM
10-31-2000 09:26 AM
#rcp *dml root@dev:/u01/fserrano
Another possible aspect of the problem is when I attempt a rlogin with root between the two servers it asks me for the password even though it is the same. I think if I can get rlogin to not ask for a password, then rcp would also work. Thanks for your help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2000 09:30 AM
10-31-2000 09:30 AM
Re: problems with rcp
Do a man on .rhosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2000 09:30 AM
10-31-2000 09:30 AM
Re: problems with rcp
They syntax I generally use for rcp is 'rcp file machine:/directory/file'. I haven't used the user@machine:/directory syntax.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2000 09:31 AM
10-31-2000 09:31 AM
SolutionIf the user doing the rcp has a .rhosts file in their home directory (root included), then you won't get the password prompt. The .rhosts file contains the names of the systems that the user can access without a password (using rlogin, rcp, etc...) from that server.
.rhosts on ServerA would include:
ServerB username
ServerB.domain.com username
.rhosts on ServerB would include:
ServerA username
ServerB.domain.com username
Please note that using a .rhosts file is incredibly UNSAFE with regards to system security, especially if you have them for the root account. You can also check out the /etc/hosts.equiv file man pages for more info.
Hope this helps.
-Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2000 09:33 AM
10-31-2000 09:33 AM
Re: problems with rcp
You want to get remsh
No, you dont need the passwords on both systems to be the same. It doesnt matter what the passwords are.
You want to setup a .rhosts file in the home dir of the user you use to remsh or rcp to the remote server. See man rhosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2000 10:02 AM
10-31-2000 10:02 AM
Re: problems with rcp
.rhosts on ServerA would include:
ServerB username
ServerB.domain.com username
.rhosts on ServerB would include:
ServerA username
ServerA.domain.com username
I apologize for this!
-Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2000 11:53 AM
10-31-2000 11:53 AM
Re: problems with rcp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2000 12:05 PM
10-31-2000 12:05 PM
Re: problems with rcp
What it does do, however, is increase the risk that a single penetration will compromise multiple servers. Many admins also do not like users to maintain individual .rhosts netries because it places that user in the position of gatekeeper to system access. Theoretically, this is no more of a risk than allowing the user to know his own password, but on a practical level mst users are more likely to be careless with an .rhosts entry than with their password.
For myself, I simply make it a point to alert whenever an .rhosts file has been changed and verify that the change does not openthe account to anyone it shouldn't.