> For the complete documentation index, see [llms.txt](https://alexanderbittner.gitbook.io/pentest-resources/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alexanderbittner.gitbook.io/pentest-resources/general/os-basics/users/add-low-privilege-user.md).

# Add low-privilege user

{% tabs %}
{% tab title="Windows" %}
`net user /add username password`
{% endtab %}

{% tab title="Linux" %}
With all options as a one-liner:

`sudo useradd -g users -d /home/username -s /bin/bash -p 'mypasswordinMD5' username`

Interactively:

`sudo useradd username`
{% endtab %}
{% endtabs %}
