Examples
Explain the sticky bit in a shared temporary-directory permission
Understand the trailing t in drwxrwxrwt and how it differs from plain world-write permission.
Input
drwxrwxrwtExpected checks
Case-insensitiveContains "1777"
Contains "drwxrwxrwt"
Contains "sticky bit"An executable owned by its author
Input
-rwxr-xr-xExpected checks
Case-insensitiveContains "755"A private SSH key
Input
-rw-------Expected checks
Case-insensitiveContains "600"A world-readable text file
Input
-rw-r--r--Expected checks
Case-insensitiveContains "644"A set-user-ID executable
Input
-rwsr-xr-xExpected checks
Case-insensitiveContains "4755"Input should be in either octal (e.g. 755) or textual (e.g. drwxr-xr-x) format.
Format reference: Parse UNIX file permissions background and specification