> For the complete documentation index, see [llms.txt](https://pnpt.adot8.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pnpt.adot8.com/linux-privilege-escalation/initial-enumeration/user-enumeration.md).

# User Enumeration

## Who are you?

```
whoami
id
```

## View sudo permissions

```
sudo -l
```

## View other users

```
cat /etc/passwd
cat /etc/passwd | cut -d : -f 1
```

* -d delimiter
* -f field

{% hint style="info" %}
Real users will be towards the bottom, root user at the top
{% endhint %}

## Sensitive files

```
cat /etc/shadow
cat /etc/group
```

## Check the history

```
history
```

## Try switching users

```
sudo su -
```
