Skip to content

Can "enter" no read access folders (Permission Denied or unreadable directories)

Version information

Thunar 4.20.0 on Xubuntu

Steps to reproduce

  1. Make a folder as root (sudo mkdir testfolder).
  2. Give it 0700 or drwx------ permissions (Root read and write, None access to everyone else) (sudo chmod 0700 testfolder).
  3. In Thunar, as a regular user, open testfolder.

Current behavior

Thunar allows you to "enter" the directory, and it looks as if you've entered an empty directory (when there might actually be files and sub folders). This is a little confusing because some may think they've entered an empty folder and could subsequently delete important files.

Expected outcome

You probably shouldn't be allowed to open the folder at all, with a blocking dialog explaining why (Permission Denied: This user has no read access to this folder, etc. Extra nicety, maybe displaying owner and permissions could be helpful "only x has access to this folder", etc).

Additional information

Removed behavior?

I just tested with Thunar 4.18.10 on Fedora 40 Xfce and it did give a Permission Denied dialog. But after the dialog, it still seemingly "enters" the directory and appears to be empty. So maybe this was intentionally removed or accidentally not showing? 4.20.0 when opened via terminal and entering an unreadable folder gives:

(thunar:100553): GLib-GObject-CRITICAL **: 18:48:40.347: signal_emit_valist_unlocked: assertion 'signal_id > 0' failed

So it could be that the dialog missing is a bug, but the not entering the folder aspect is a request?

Screenshots of current issue in Thunar 4.20.0

Folder opened as root and showing contents (left) and opened as user without permission not showing contents (right)

folder-unreadable

Dialog of folder, which says Permission Denied

folder-unreadable-properties


If there's anything more I can add let me know. Thanks!