5

This command:

rm -f testfile && touch testfile && chown 0 testfile

is failing in Cygwin with error:

chown: changing ownership of 'testfile': Invalid argument

Why?

  • Because of ntfs filesystem. – Ipor Sircer Sep 16 '18 at 8:11
8

You cannot chown with root (0) account simply because there is no such thing in Cygwin.

  • 1
    OK. I think I'll just have to accept this. Literally and figuratively. – PSkocik Sep 16 '18 at 8:25
  • 1
    Captain obvious to the rescue ;) – Rui F Ribeiro Sep 16 '18 at 10:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.