> For the complete documentation index, see [llms.txt](https://tenaka.gitbook.io/pentesting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tenaka.gitbook.io/pentesting/enumeration/linux/file-permissions.md).

# File Permissions

Owner  Group   All Users

xxx       xxx      xxx

r = read

w = write

x = execute

s = suid

#### #example of a vulnerable file where all users inc lower priv can update shell file and privesc.

rwx  rwx rwx root root /usr/lib/something.sh

#### #-s suid allows least priv to run file as root

rw**s**   -xr -x root root /usr/lib/something.sh

#### -s SGID run suid as the group priv

rwx   r-s  r-x root shadow /usr/lib/something.sh

##
