Commit 213eda

2026-08-05 22:57:04 Niklas Polke: Update Special Bits
linux/chmod.md ..
@@ 52,3 52,15 @@
```
Both notations achieve the same result. Numeric notation is commonly used for setting complete permission sets, while symbolic notation is useful for modifying specific permissions.
+
+ ## Special Bits
+ | Bit | Octal | Letter | on file | on directory |
+ | - | - | - | - | - |
+ | Setuid | 4 | u+s | program runs with uid of file | --- |
+ | Setgid | 2 | g+s | program runs with gid of file | directory passes group of directory to new files/directories beneath |
+ | Sticky | 1 | +t | --- | the files within the directory are only deletable and renamable from owner of directory or file |
+
+ example:
+ ```
+ 3770 Setgid + Sticky-Bit + rwx for user, rwx for group and none for other
+ ```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9