Author Topic: macos could not delete some file or folder with flag @  (Read 7112 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2145
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
macos could not delete some file or folder with flag @
« on: กรกฎาคม 16, 2018, 05:14:43 PM »
detect drwx------@ for folder file
and could not delete permanent from .trash in MacOS
 
$ ls -lah
total 0
drwx------   4 packetlove  staff   128B Jul 16 15:41 .
drwxr-xr-x+ 28 packetlove  staff   896B Jul 15 20:57 ..
drwxr-xr-x   3 packetlove  staff    96B Jul 10 21:43 .BAH.d3m2y
drwx------@  3 packetlove  staff    96B Jul 11 10:36 .BAH.iIigV

##Change permission from @ to - as
$ sudo xattr -rc .BAH.iIigV

$ls -lah
drwx------  3 packetlove  staff    96B Jul 11 10:36 .BAH.iIigV

##delete folder again
rm -rf .BAH.iIigV