folder

how can we transfer folder occupied in a different user to dektp of another user

[root@server1 Desktop]# su - oracle
[oracle@server1 ~]$ ls
Desktop
[oracle@server1 ~]$ cd Desktop/
[oracle@server1 Desktop]$ ls
rpms.zip
[oracle@server1 Desktop]$ cp rpms.zip /root/Desktop
cp: accessing `/root/Desktop': Permission denied
[oracle@server1 Desktop]$

How can I transfer file from user to user
jcob_lAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Seth SimmonsSr. Systems AdministratorCommented:
put sudo in front of cp if oracle has sudo rights

sudo cp rpms.zip /root/Desktop

Open in new window

or use same command as root user (don't su - oracle first)
0
TintinCommented:
As the root user, do

cp ~oracle/Desktop/rpms.zip /root/Desktop
0
DavidSenior Oracle Database AdministratorCommented:
Or have the root user pull the file to his/her desktop -- although this begs the question why a non-root account needs to add something to root.....
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jcob_lAuthor Commented:
fine
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.