Difference between revisions of "Passwd (command)"
Jump to navigation
Jump to search
(49 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
+ | <code>passwd</code> command included in [[passwd (package)]] | ||
− | |||
− | |||
− | < | + | * <code>[[passwd]] USERNAME</code> |
− | passwd | ||
− | |||
− | </ | ||
+ | * <code>[[passwd -l]] USERNAME</code> // for disabling password login | ||
+ | * <code>[[passwd -u]] USERNAME</code> // will unlock account if needed | ||
+ | * <code>[[passwd --status]] USERNAME</code> // show status | ||
+ | |||
+ | passwd -u $USERNAME | ||
+ | passwd: password expiry information changed. | ||
+ | |||
+ | passwd -u USERNAME | ||
+ | passwd: password for USERNAME changed by root | ||
+ | |||
+ | passwd -u USERNAME | ||
+ | passwd: password for USERNAME is already [[unlocked]] | ||
+ | |||
+ | passwd --status USERNAME | ||
+ | USERNAME L 11/15/2020 0 99999 7 -1 | ||
+ | |||
+ | [[journalctl]] | ||
+ | Feb 05 14:35:55 SERVER_NAME passwd[29180]: [[pam_unix]](passwd:chauthtok): password changed for root | ||
+ | |||
+ | == Related terms == | ||
+ | * <code>[[PermitRootLogin]]</code> and <code>[[PasswordAuthentication]]</code> in <code>[[/etc/ssh/sshd_config]]</code> | ||
+ | * [[PAM]] | ||
+ | * <code>[[/etc/passwd]]</code> (See also [[Zabbix]] <code>/etc/passwd</code> trigger) | ||
+ | * <code>[[jailkit]]</code> | ||
+ | * <code>[[libpam_cracklib]]</code> | ||
+ | * [[Passwordless sudo]] | ||
+ | * [[Lockout policy (Windows)]] | ||
+ | * [[Password policy]] | ||
+ | * <code>[[openssl passwd]]</code> | ||
+ | * <code>[[/etc/systemd/logind.conf]]</code> | ||
+ | * <code>[[passwd (package)]]</code> | ||
+ | * [[PostgreSQL]]: <code>[[ALTER USER]] user_name WITH PASSWORD 'new_password';</code> | ||
+ | * <code>[[ssh-keygen -p]]</code> | ||
+ | * <code>[[mkpasswd]]</code> | ||
+ | * [[AWS]]: <code>[[aws iam change-password]]</code> | ||
+ | * [[macOS]]: | ||
+ | ** <code>[[dscl . -passwd]]</code> | ||
+ | ** <code>passwd yourUsername</code> | ||
+ | ** <code>[[security set-keychain-password]]</code> | ||
+ | * [[Change password]] | ||
+ | * <code>[[gpasswd]]</code> | ||
+ | |||
+ | == Activities == | ||
+ | * Read https://www.cyberciti.biz/faq/securing-passwords-libpam-cracklib-on-debian-ubuntu-linux/ | ||
+ | * [[macOS]]: https://support.apple.com/en-us/HT202860 | ||
== See also == | == See also == | ||
+ | * [[Hardcoded password]] | ||
* {{sudo}} | * {{sudo}} | ||
* {{OpenSSH}} | * {{OpenSSH}} |
Latest revision as of 16:47, 11 September 2023
passwd
command included in passwd (package)
passwd USERNAME
passwd -l USERNAME
// for disabling password loginpasswd -u USERNAME
// will unlock account if neededpasswd --status USERNAME
// show status
passwd -u $USERNAME passwd: password expiry information changed.
passwd -u USERNAME passwd: password for USERNAME changed by root
passwd -u USERNAME passwd: password for USERNAME is already unlocked
passwd --status USERNAME USERNAME L 11/15/2020 0 99999 7 -1
journalctl Feb 05 14:35:55 SERVER_NAME passwd[29180]: pam_unix(passwd:chauthtok): password changed for root
Related terms[edit]
PermitRootLogin
andPasswordAuthentication
in/etc/ssh/sshd_config
- PAM
/etc/passwd
(See also Zabbix/etc/passwd
trigger)jailkit
libpam_cracklib
- Passwordless sudo
- Lockout policy (Windows)
- Password policy
openssl passwd
/etc/systemd/logind.conf
passwd (package)
- PostgreSQL:
ALTER USER user_name WITH PASSWORD 'new_password';
ssh-keygen -p
mkpasswd
- AWS:
aws iam change-password
- macOS:
dscl . -passwd
passwd yourUsername
security set-keychain-password
- Change password
gpasswd
Activities[edit]
- Read https://www.cyberciti.biz/faq/securing-passwords-libpam-cracklib-on-debian-ubuntu-linux/
- macOS: https://support.apple.com/en-us/HT202860
See also[edit]
- Hardcoded password
sudo
,visudo
,su, passwd, sudo su
,Passwordless sudo
,/etc/sudoers
,/etc/sudoers.d/
,/etc/sudoers
,sudo --help
- OpenSSH (changelog):
/etc/ssh/sshd_config
|/etc/ssh/ssh_config
|~/.ssh/
|openSSL | sshd logs
|sftp
|scp
|authorized_keys
|ssh-keygen
|ssh-keyscan
|ssh-add
|ssh-agent
|ssh
|Ssh -O stop
|ssh-copy-id
|CheckHostIP
|UseKeychain
, OpenSSF passwd
,ssh-keygen
,chage
,/etc/passwd
, Password policy, Passwd (package),mkpasswd
,cracklib-check
, Password cracking, Phone to sign in, Passkey,htpasswd
Advertising: