# Users and Groups

## Users

### Creating Users

<pre class="language-sh"><code class="lang-sh"><strong># Create a user and immediately set the password
</strong><strong>sudo useradd sshuser &#x26;&#x26; sudo passwd sshuser
</strong><strong>
</strong><strong># Create a user with a home directory (-m) and immediately set the password
</strong><strong>sudo useradd -m sshuser &#x26;&#x26; sudo passwd sshuser
</strong><strong>
</strong><strong># If you need to create a home directory for an existing user that doesn't have one
</strong><strong>sudo mkhomedir_helper sshuser
</strong></code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.techwithtyler.dev/operating-systems/linux/users-and-groups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
