mirror of
https://github.com/uutils/shadow.git
synced 2026-06-10 16:14:57 -07:00
81d0e1776d
Fixes #56 — 14 man pages in docs/man/ (markdown format). Fixes #67 — 8 Copilot findings fixed: - useradd: proper date validation (Feb 31 rejected) - userdel/usermod: --root wired to SysRoot - usermod: --expiredate validates input - usermod: --login validates name + updates shadow/group - userdel: -f separated from -r behavior - useradd: home dir resolved through SysRoot - skel: preserves directory permissions Fixes #69 — benchmark script (benches/benchmark.sh) Fixes #70 — FreeBSD/NetBSD reference (docs/FREEBSD-NETBSD-REFERENCE.md) 456 tests, zero clippy warnings.
1.2 KiB
1.2 KiB
chpasswd(8) - update passwords in batch mode
NAME
chpasswd - update passwords in batch mode
SYNOPSIS
chpasswd [options]
DESCRIPTION
The chpasswd command reads a list of username:password pairs from standard input and uses this information to update a group of existing users. Each line is of the format:
username:password
By default the password is expected to be in cleartext (not yet supported in shadow-rs; use -e). With the -e flag, the password is expected to be already encrypted (pre-hashed).
OPTIONS
- -c, --crypt-method METHOD
- Use the specified crypt method. Supported values: SHA256, SHA512, YESCRYPT, DES, MD5.
- -e, --encrypted
- Supplied passwords are already encrypted (pre-hashed).
- -m, --md5
- Use MD5 encryption for cleartext passwords (deprecated).
- -R, --root CHROOT_DIR
- Apply changes in the CHROOT_DIR directory.
- -s, --sha-rounds ROUNDS
- Use the specified number of rounds for SHA256/SHA512 encryption.
EXIT STATUS
- 0
- Success.
- 1
- Permission denied, invalid input, file busy, or unexpected failure.
FILES
- /etc/shadow
- Secure user account information.
SEE ALSO
passwd(1), passwd(5), shadow(5)