I was copying files from linux to windows (via COPSSH) using a command like (from linux shell):
scp -pr dir administrator@win:/cygdrive/c/dest/
(dir was a directory with files and subdirectories)
Transfer was interrupted by pressing ctrl-c (from linux shell). I was able to delete all the files copied to windows except the one which transfer was interrupted on and (sub)directories in which it resides.
How can I delete this file?
In security settings of this file as current owner is "Unable to display current owner". I tried (of course as administrator) to change ownership of this file to administrator, but always got "Access is denied". I also tried this as SvcCOPSSH user (copSSH service account) and as sshd (copSSH privilege separation user) but that as well didn't succeed. That command didn't do the job either:
takeown /F file /A
Is there a solution to this?