Not found locally for passwd. Try Google search
PASSWD(1) - User Commands
passwd - change user password
| Use Case | Command | Description |
|---|---|---|
| Change own password | passwd | Prompts for old and new password. |
| Change another user's password (root) | passwd LOGIN | Superuser can change any account. |
| Lock a password | passwd -l LOGIN | Disables password by adding '!' to encrypted field. |
| Unlock a password | passwd -u LOGIN | Restores previous password value. |
| Delete a password | passwd -d LOGIN | Makes account passwordless. |
| Show account status | passwd -S [LOGIN] | Displays password state and aging info. |
| Expire password immediately | passwd -e LOGIN | Forces password change at next login. |
| Set password aging | passwd -n MIN -x MAX -w WARN -i INACTIVE LOGIN | Configure minimum, maximum, warning, and inactivity days. |
| Show all usersβ status (root) | passwd -Sa | List status for all accounts (combines -S and -a). |
passwd [options] [LOGIN]
The passwd command changes passwords for user accounts. A normal user may only change the password for their own account, while the superuser may change the password for any account. passwd also changes the account or associated password validity period.
passwd refuses to change the password and exits.passwd will reject any password which is not suitably complex.-S and causes show status for all users.usermod --expiredate 1 (this sets the account's expire date to Jan 2, 1970).
-l option).-1 as MAX_DAYS will remove checking a password's validity.passwd uses PAM to authenticate users and to change their passwords./etc/passwd β User account information./etc/shadow β Secure user account information./etc/pam.d/passwd β PAM configuration for passwd.| Exit Code | Meaning |
|---|---|
| 0 | β success |
| 1 | π« permission denied |
| 2 | β invalid combination of options |
| 3 | β οΈ unexpected failure, nothing done |
| 4 | π unexpected failure, passwd file missing |
| 5 | β³ passwd file busy, try again |
| 6 | π§ invalid argument to option |
shadow-utils 4.8.1 02/06/2024
OPENSSL-CMDS(1SSL) - OpenSSL
asn1parse, ca, ciphers, cms, crl, crl2pkcs7, dgst, dhparam, dsa, dsaparam, ec, ecparam, enc, engine, errstr, gendsa, genpkey, genrsa, info, kdf, mac, nseq, ocsp, passwd, pkcs12, pkcs7, pkcs8, pkey, pkeyparam, pkeyutl, prime, rand, rehash, req, rsa, rsautl, s_client, s_server, s_time, sess_id, smime, speed, spkac, srp, storeutl, ts, verify, version, x509 - OpenSSL application commands
| Use Case | Command | Description |
|---|---|---|
| Generate RSA key | openssl genrsa | Generate an RSA private key. |
| Generate CSR | openssl req | Generate a certificate signing request. |
| View certificate | openssl x509 | Display certificate information. |
| Encrypt/decrypt data | openssl enc | Symmetric cipher commands. |
| Compute digest | openssl dgst | Message digest (hash) computation. |
| Test SSL connection | openssl s_client | Generic SSL/TLS client test. |
| List ciphers | openssl ciphers | Display available cipher suites. |
| OCSP | openssl ocsp | Online Certificate Status Protocol client. |
| PKCS#12 | openssl pkcs12 | PKCS#12 file (PFX) manipulation. |
| Version info | openssl version | Display OpenSSL version information. |
openssl cmd -help | [-option | -option arg] ... [arg] ...
Every cmd listed above is a (sub-)command of the openssl(1) application. It has its own detailed manual page at openssl-cmd(1). For example, to view the manual page for the openssl dgst command, type man openssl-dgst.
Among others, every subcommand has a help option.
Initially, the manual page entry for the "openssl cmd" command used to be available at cmd(1). Later, the alias openssl-cmd(1) was introduced, which made it easier to group the openssl commands using the apropos(1) command or the shell's tab completion.
In order to reduce cluttering of the global manual page namespace, the manual page entries without the 'openssl-' prefix have been deprecated in OpenSSL 3.0 and will be removed in OpenSSL 4.0.
Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.
3.0.2 2026-06-02
PASSWD(5) - File Formats and Conversions
passwd - the password file
| Field # | Name | Description |
|---|---|---|
| 1 | login name | User's login name (unique) |
| 2 | encrypted password | Optional; 'x' means shadow; '!' means locked; empty means no password |
| 3 | numerical user ID | UID (0 for root) |
| 4 | numerical group ID | Primary GID |
| 5 | user name or comment field | Full name, office, etc. |
| 6 | user home directory | Initial working directory |
| 7 | optional user command interpreter | Shell (e.g., /bin/bash); default /bin/sh |
/etc/passwd contains one line for each user account, with seven fields delimited by colons (":"). These fields are:
If the password field is a lower-case "x", then the encrypted password is actually stored in the shadow(5) file instead; there must be a corresponding line in the /etc/shadow file, or else the user account is invalid.
The encrypted password field may be empty, in which case no password is required to authenticate as the specified login name. However, some applications which read the /etc/passwd file may decide not to permit any access at all if the password field is blank.
A password field which starts with an exclamation mark means that the password is locked. The remaining characters on the line represent the password field before the password was locked.
Refer to crypt(3) for details on how this string is interpreted.
If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).
The comment field is used by various system utilities, such as finger(1).
The home directory field provides the name of the initial working directory. The login program uses this information to set the value of the $HOME environmental variable.
The command interpreter field provides the name of the user's command language interpreter, or the name of the initial program to execute. The login program uses this information to set the value of the $SHELL environmental variable. If this field is empty, it defaults to the value /bin/sh.
/etc/passwd β User account information./etc/shadow β optional encrypted password file/etc/passwd- β Backup file for /etc/passwd.shadow-utils 4.8.1 02/06/2024
Generated by phpman v4.10.0-7-g98e9fd5 Author: Che Dong Under GNU General Public License
2026-09-10 21:14 @2600:1f28:365:80b0:2634:f534:c836:dc5e
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)