Quiero buscar en el directorio de la papelera de un disco externo conectado a mi Mac.
db@15 ~ % cd /Volumes/2TB/.Trashes
db@15 .Trashes % ls
ls: .: Operation not permitted
db@15 .Trashes % sudo su
Password:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
sh-3.2# ls
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
ls: .: Operation not permitted
sh-3.2# cd ..
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
sh-3.2# pwd
/Volumes/2TB
sh-3.2# ls -lO
d-wx--x--t@ 5 su staff hidden 170 Aug 6 21:30 .Trashes
sh-3.2# xattr .Trashes
com.apple.FinderInfo
sh-3.2# chmod o+r .Trashes
chmod: Unable to change file mode on .Trashes: Operation not permitted
¿Ahora que? Parece que no hay banderas que se apliquen y solo un atributo extendido .
¿Por qué no puede root ls o chmod este directorio?