2

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)

Stephen
  • 323
  • 1
  • 3
  • 15
  • 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 Answers1

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.

Stephen
  • 323
  • 1
  • 3
  • 15