1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

Userland: useradd: Add command line option to set user password

This commit is contained in:
Brendan Coles 2020-12-21 08:14:44 +00:00 committed by Andreas Kling
parent 09e069bc0b
commit 39c92dad83
2 changed files with 5 additions and 1 deletions

View file

@ -10,7 +10,7 @@ useradd - add a new user to the system password file
## Description
This program uses adds a new user to the system.
This program adds a new user to the system.
By default, the user will be added to the **users** group (which has a GID of 100).
@ -20,6 +20,7 @@ This program must be run as root.
* `-u`, `--uid` _uid_: The user identifier for the new user. If not specified, an unused UID above `1000` will be auto-generated.
* `-g`, `--gid` _gid_: The group identifier for the new user. If not specified, it will default to 100 (the **users** group).
* `-p`, `--password` _password_: The encrypted password for the new user. If not specified, it will default to blank.
* `-s`, `--shell` _path-to-shell_: The shell binary for this login. The default is `/bin/Shell`.
* `-m`, `--create-home`: Create the specified home directory for this new user.
* `-d`, `--home-dir` _path_: Set the home directory for this user to path. By default, this is `/home/username`, where `username` is the value of login.