# Adding User On Alpine

On Alpine adding a user is little different than adding a user in Ubuntu/Debian. And we can use `adduser` command to add a user.

## Usage

```bash
adduser
BusyBox v1.33.1 () multi-call binary.

Usage: adduser [OPTIONS] USER [GROUP]

Create new user, or add USER to GROUP

	-h DIR		Home directory
	-g GECOS	GECOS field
	-s SHELL	Login shell
	-G GRP		Group
	-S		Create a system user
	-D		Don't assign a password
	-H		Don't create home directory
	-u UID		User id
	-k SKEL		Skeleton directory (/etc/skel)
```

## Example

```bash
adduser -h /home/somebody -s /bin/bash somebody -u 1001
```

This adds a user `somebody` with SHELL login as `bash`, home directory at `/home/somebody` and an UID of `1001`.

***Source:*** [***CyberCiti***](https://www.cyberciti.biz/faq/how-to-add-and-delete-users-on-alpine-linux/)


---

# 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://til.devjugal.com/linux/alpine/adding-user-on-alpine.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.
