1

I'm copy/linking files and have found that a certain file really does not like to be hard linked.

Both gcp -alp Get_started_with_GoPro.url test (gnu-cp) and ln Get_started_with_GoPro.url test fail with Operation not permitted.

Other files link fine, and cp Get_started_with_GoPro.url test1; ln test1 test2 works just fine as well.

How can I find out what is preventing Get_started_with_GoPro.url file from being hard linked?

(I've also verified that other files with same permissions can hard link)

  • are both of your files on the same filesystem ? – Pierre-Alain TORET May 29 '17 at 12:04
  • Absolutely ... those commands are verbatim simplified attempts. (1 directory is not usually across multiple file systems.) readlink Get_started_with_GoPro.url returns nothing (indicating it's a normal file) – Stephen May 29 '17 at 12:26
1

The basic answer is that ls -l does not tell all. Viewing in Finder shows a padlock and "Get Info" shows that "Locked" is ticked.

Command to unlock "Locked" files on OS X has more details on how to change this from the command line.

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.