Operating System - HP-UX
1834090 Members
2089 Online
110063 Solutions
New Discussion

copying a files one user to another user

 
SOLVED
Go to solution
Ramana.Sv
Frequent Advisor

copying a files one user to another user

Hi, how to copy file from one user to another user please.

Thank you
4 REPLIES 4
Juan M Leon
Trusted Contributor
Solution

Re: copying a files one user to another user

Assuming thsat they are in the same server:
cp -R /home/usera /home/userb

If the copy is to two differtent servers :

hosta:/home/usera # scp -R * userb@hostb:/home/userb


Hope it answers your question
James R. Ferguson
Acclaimed Contributor

Re: copying a files one user to another user

Hi:

This is a forum for asking for help, but it is not one intended for teaching you how to perform basic Unix tasks.

I suggest you acquire a book on basic Unix. The HP website http://docs.hp.com/index.html has a vast number of free guides along with manpages for major releases.

Regards!

...JRF...
spex
Honored Contributor

Re: copying a files one user to another user

Ramana,

You really need to take the time to review UNIX fundamentals, at least. You can't expect us to answer every question you have on basic system administration. The questions you've been asking pertain to tasks you should be able to handle yourself. If not, you have no business managing a production server.

I suggest reviewing the documentation available here:
http://docs.hp.com/en/hpux11iv2.html

Especially "Managing Systems and Workgroups: A Guide for HP-UX System Administrators":
http://docs.hp.com/en/B2355-90950/B2355-90950.pdf

PCS
Juan M Leon
Trusted Contributor

Re: copying a files one user to another user

I also noticed that you have not assigned any points to your asnwer on your other questions.

It will be nice if you assign points.