What's an uppercase 'T' at the end of unix permissions?

enter image description here

What's that capital 'T' in the permissions mean, and how does it work? Is it related to this 'sticky bit' thing I've heard about but never quite understood?


The uppercase T appears when the x bit for "others" (ie in the last position) is not set. Both of these directories have the sticky bit set, but the second one has no execute permission for "others"

drwxrwxrwt 2 zanna zanna 4096 May 13 09:53 t
drwxrwxrwT 2 zanna zanna 4096 May 13 09:53 T

Since it is replaced by the sticky bit's [tT], we need some way of knowing whether the directory has execute permission for "others" or not, hence the difference in case

In our file browser, the Permissions tab under Properties shows the differences between directories with and without execute permissions more clearly: we need execute permission to access (enter or stat) a directory.

Here's what Wikipedia has to say about the sticky bit on directories:

The most common use of the sticky bit today is on directories. When the sticky bit is set, only the item's owner, the directory's owner, or the superuser can rename or delete files. Without the sticky bit set, any user with write and execute permissions for the directory can rename or delete contained files, regardless of owner. Typically this is set on the /tmp directory to prevent ordinary users from deleting or moving other users' files. This feature was introduced in 4.3BSD in 1986 and today it is found in most modern Unix systems.