- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ownership of copies files to a remote system
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-10-2003 04:31 PM
02-10-2003 04:31 PM
I am trying to copy files from a d220 ux-11.0 system to a rp2450 ux-11.0 system. I have used rcp but found that the owner of the files would become the name of user submitting the rcp command; or, if issued rcp cmd with userid@hostname remshd: Password for this account expired - msg is displayed. I have added .rhosts file to the users directory in both systems and still get this message.
Would someone please help I really have to get these files copied over to the 2450 - and I dont want to go nuts!! ps. any other methods - maybe easier - please let me know.
Thanks
Maria
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 04:39 PM
02-10-2003 04:39 PM
Re: ownership of copies files to a remote system
the username you are using on the destination machine to rcp is disabled, enable the account first using
/usr/lbin/modprpw -k "username" if its a trusted system.
Then use rcp with -p option to preserve the permission and mode. i.e.
rcp -p source userid@destination
An alternate to check if rcp will work run remsh hostname -l userid -n date
If this works rcp should work too.
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 04:45 PM
02-10-2003 04:45 PM
Re: ownership of copies files to a remote system
There is a couple of other methods you could try:
tar archive
cpio using remsh
# cd /mydir
# (find . -xdev|cpio -coax)|remsh remhost "cd mydir;cpio -icdmuxla"
fbackup
fbackup -f -i /mydir | remsh remhost "cd /newlocation ; frecover -xXf -"
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 04:46 PM
02-10-2003 04:46 PM
Re: ownership of copies files to a remote system
I ahve the username setup with a .rhosts file containg name of destination host. Checked system access and users are allowed. Have I missed anythign else.
Maria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 04:51 PM
02-10-2003 04:51 PM
Re: ownership of copies files to a remote system
I did try a tar archive but the owner of the files came up as a number (202) and there were messages about the blocksize being different.
Thanks for helping.
Maria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 04:55 PM
02-10-2003 04:55 PM
Re: ownership of copies files to a remote system
Ok here is the setup you should have in .rhosts file
say source machine is A and user is AU
destination machine is B and user there is BU
then in the .rhosts file of destination machine(home directory of BU) should have
A(machine name) AU(username)
similar if you want to do reverse rcp
on host A inside AU's home directory you should have
B BU
Also try loging into the server with the userid you are using to do rcp to see if the account is file(password is not expired)
Thanks
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 04:59 PM
02-10-2003 04:59 PM
Re: ownership of copies files to a remote system
If the password has "expired" for the user and not "account disabled", the password must be changed. Login into the remote server (assuming your root) from the console, or if you have another session, change it using that.
If you just copying files, then use ftp, or you could even set up a simple NFS mount point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 05:02 PM
02-10-2003 05:02 PM
Re: ownership of copies files to a remote system
# fbackup -f -i /SCCS|remsh charon "cd /SCCS ; frecover -xXf -"
fbackup(1401): extra argument: /SCCS ignored
fbackup(1404): no files have been specified; (use at least one -i and/or -g opti
on)
usage: fbackup -f device [-f device] ... [-0-9] [-nsuvyAEl]
[-i path] ... [-e path] ... [-g graph] ... [-d path] [-I path] [-V path]
[-c config]
usage: fbackup -f device [-f device] ... -R restart [-nsuvyAEl]
[-d path] [-I path] [-V path] [-c config]
sh frecover: not found
What am I doing wrong now? I am sure that the -i I put in the command is an include file option. Any ideas??
Maria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 05:12 PM
02-10-2003 05:12 PM
Re: ownership of copies files to a remote system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 05:24 PM
02-10-2003 05:24 PM
Re: ownership of copies files to a remote system
# fbackup -f - -i /mydir | remsh remhost "cd /newlocation ; frecover -xXf -"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 05:31 PM
02-10-2003 05:31 PM
Solutionfind . -name '*.sh' | cpio -ocv | remsh daffy cd /tmp \; cpio -icvdum
That should fix you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 05:39 PM
02-10-2003 05:39 PM
Re: ownership of copies files to a remote system
# fbackup -f - -i /SCCS|remsh charon -n "cd /SCCS ; frecover -xXf -"
fbackup(1004): session begins on Tue Feb 11 12:31:24 2003
sh: frecover: not found.
fbackup(3024): writing volume 1 to the output file -
fbackup(9999): Broken pipe
fbackup(3004): writer aborting
fbackup(1002): Backup did not complete : Reader or Writer process exit
#
I also got this error without the -n being specified in the command line.
Would you possibly have any further ideas ?
thanks
Maria.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 05:58 PM
02-10-2003 05:58 PM
Re: ownership of copies files to a remote system
# fbackup -f - -i /mydir | remsh charon -n "cd /SCCS; /usr/sbin/frecover -xXf -"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 06:04 PM
02-10-2003 06:04 PM
Re: ownership of copies files to a remote system
REgards,
Maria.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 06:14 PM
02-10-2003 06:14 PM
Re: ownership of copies files to a remote system
# fbackup -f - -i /SCCS |remsh charon -n "cd /SCCS;/usr/sbin/frecover -xXf -"
fbackup(1004): session begins on Tue Feb 11 13:06:18 2003
frecover(5418): not an fbackup volume; unable to read volume header
frecover(5414): abort selected
fbackup(3024): writing volume 1 to the output file -
fbackup(9999): Broken pipe
fbackup(3004): writer aborting
fbackup(1002): Backup did not complete : Reader or Writer process exit
If you dont mind and you have the time I would like to know if there is a way to get this method working...
thanks
Maria.