OOD files app errors deleting an empty directory with a world write parent

Given this directory structure,

dr-xr-xr-x. 19 root root 251 Nov 13 2023 /
drwxr-xr-x. 915 root root 467456 Mar 4 09:06 /groups
drwxrws–x. 17 tmerritt tmerritt 11264 Mar 10 16:15 /groups/tmerritt
drwxrwsrwx. 3 ric tmerritt 512 Mar 10 16:15 /groups/tmerritt/ric
drwxr-sr-x. 2 ric tmerritt 0 Mar 10 16:15 /groups/tmerritt/ric/test_folder

I can, from a shell,

cd /groups/tmerritt/ric && rmdir test_folder

without complaint, but If I use the ood 4.0.10 or 4.1.4 files app to navigate down to “ric”, then select “delete” from the dropdown for “test_folder” (after clicking OK to “Delete test_folder”) I get this error from ood

Remove parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: “/groups/tmerritt/ric/test_folder” (parent directory mode 42777)

This delete should work, not error out. If I change the mode on “ric” to remove the world write, I can delete test_folder from ood, but I should not have to reduce the openness of the parent to accomplish removing the empty test_dir.

Thanks. I’d have to test it out, but it appears to be a bug. I guess it doesn’t like the setbit flag?

Removed setgid from the tree, viz:

dr-xr-xr-x. 21 root root 275 Jul 18 2025 /
drwxr-xr-x. 916 root root 467968 Mar 11 13:06 /groups
drwxrwx–x. 17 tmerritt tmerritt 11264 Mar 12 04:57 /groups/tmerritt
drwxrwxrwx. 3 ric tmerritt 512 Mar 12 04:57 /groups/tmerritt/ric
drwxr-xr-x. 2 ric tmerritt 0 Mar 12 04:57 /groups/tmerritt/ric/test_folder

The problem still occurs, as long as the parent (“ric” in thse case) has world write set.

I can’t replicate on our HOME drives (NetAapp) or our project drives (GPFS).

I’d wonder if it’s something with your shared drives. Do you have different storage providers like we do for different drives? If so, can you test a similar thing on the other drive type? (and/or local storage)

Okay, moved from an NFS mounted tree to a local (ext4) directory structured as follows:

dr-xr-xr-x. 20 root root 264 Mar 13 08:30 /
drwxr-xr-x. 3 root root 22 Mar 13 08:31 /local
drwxr-xr-x. 3 tmerritt rt-is-unix 17 Mar 13 08:31 /local/tmerritt
drwxrwxrwx. 3 ric rt-is-unix 25 Mar 13 08:32 /local/tmerritt/ric
drwxr-xr-x. 2 ric rt-is-unix 6 Mar 13 08:32 /local/tmerritt/ric/test_folder

and results are the same (on ood 4.1.4):

Error occurred when attempting to remove files: Remove parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: “/local/tmerritt/ric/test_folder” (parent directory mode 40777)

This may be related to a footnote on the ruby “remove_entry_secure” description located at module FileUtils - Documentation for Ruby 4.1

The note is at module FileUtils - Documentation for Ruby 4.1

Ric