1832988 Members
2478 Online
110048 Solutions
New Discussion

scp

 
navin
Super Advisor

scp

Hello all,
I'm trying to do scp(passwd less) transsfer between two systems sucessfully.
My questios are i'm trying to scopy a file as user test to host2 from host1 .But the copied files are still having the ownership of user test. I want to have the file owned by the parent directory of the target server.If i do scp with passwd it works fine
ex: host1:testuser>scp file1 host2:/test1
passwd
.....................................
but it will not work if i set up as passwd less .
in other words...i would like to how can i make the below thing work with out the passwd prompt

host1:testuser> scp file1 testuser2@host2:/app

and the copied file should have ownership of the parent directory /app in host2
Please advice - much appreciated


Learning ...
1 REPLY 1
Yogeeraj_1
Honored Contributor

Re: scp

hi,

seems like "passwd less" copy is using a user other than testuser2, hence the ownership is different.

can you post the output of ll for each case?


nb. you may also wish to use scp -p ...


revert!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)