man credentials on a Linux/Unix system.
see /etc/passwd and /etc/shadow
see /etc/group and group command
see ps aux command
see ls -al command
see ls -al command
-rwxr--r-- 0123456789
| r | Read access is allowed |
| w | Write access is allowed |
| x | Execute access is allowed |
| - | Replaces "r", "w" or "x" if according access type is denied |
| -rwxr-xr-x | File, processes which match my user can read, write and execute processes which match my group can only read and execute other processes can only read and execute |
| dr-x------ | Directory, user read and execute access, group and others have no access |
| Access type | File | Directory |
|---|---|---|
| Read | If the file contents can be read | If the directory listing can be obtained |
| Write | If process can write to the file (change its contents) | If process can change directory contents: create, delete, rename files/directories |
| Execute | If process can execute the file | If process can cd to/through the directory |
By example:
A few setuid threats