Similar to the situation from
YARN-4594, container-executor will fail to cleanup directories that do not have write and execute permissions for the directory. YARN-4594 fixed the scenario where the directory is not readable, but it missed the case where we can open the directory but either not traverse it (i.e.: no execute permission) or cannot remove entries from within it (i.e.: no write permissions).