2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 17019
/ 3 Years ago, tue, august 31, 2021, 4:39:52
I'm using cygwin in windows 7 to copy a directory to an ubuntu machine using this command.
scp -rp -P 54322 /cygdrive/c/xampp/htdocs/. [email protected]:/home/user/somefolder/
After copying all the files, they all have "no read, no write" permissions. Does anyone know why?
Alternatively if I copy /cygdrive/c/xampp/htdocs/
to /cygdrive/c/Users/user
and then use scp to copy the files. The permissions are correct.
---------- 1 user user 1273 Apr 21 16:32 about.html
---------- 1 user user 1707 Apr 21 16:33 contact.html
d--------- 2 user user 4096 Apr 21 04:14 images
---------- 1 user user 2259 Apr 21 22:27 index.html
---------- 1 user user 1252 Apr 21 16:33 projects.html
---------- 1 user user 823 Apr 22 22:03 style.css
drwx------ 6 user user 4096 Apr 21 02:11 xampp
More From » ssh