mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
Userland: useradd: Add command line option to set user password
This commit is contained in:
parent
09e069bc0b
commit
39c92dad83
Notes:
sideshowbarker
2024-07-19 00:41:47 +09:00
Author: https://github.com/bcoles
Commit: 39c92dad83
Pull-request: https://github.com/SerenityOS/serenity/pull/4477
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue