Applying tmp privileges recursively