> For the complete documentation index, see [llms.txt](https://f1rstbyt3.gitbook.io/hacking-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://f1rstbyt3.gitbook.io/hacking-notes/active-directory/privilege-escalation/unix/insecure-file-permissions.md).

# Insecure File Permissions

### Check for file permissions:

`Ls -all`

**Permission structure:**\
**d** = director\
**r** = read permission\
**w** = write permission\
**x** = execute permission (or enter directory)\
**–** = no permission

**Example**:\
d<mark style="color:green;">**rwx**</mark><mark style="color:blue;"><mark style="color:green;">r<mark style="color:green;"></mark><mark style="color:blue;">-x</mark>*<mark style="color:red;">r-x</mark>*

<mark style="color:green;">Green</mark> = owners/ user permissions\ <mark style="color:blue;">Blue</mark> = group permissions\ <mark style="color:red;">Red</mark> = other permissions – anyone outside the group
