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
ls -l /home/user/somefolder
and edit your question so we can see the permissions on the linux side?