When I enter in terminal
files=(/var/db/*); printf '%s\n' "${files[@]}"
and run it, I get a list of files in that folder, but going into restricted TokenCache dir does not give anything:
files=(/var/db/TokenCache/*); printf '%s\n' "${files[@]}"
This command gives me back /var/db/TokenCache/* and not files/folders inside. Is there any way to make it work inside restricted folders as sudo ls and even sudo rm work inside? For example:
sudo ls -la /var/db/TokenCache
shows its content, namely two folders config and tokens.