Editing Passwd (command)
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | passwd command included in [[passwd (package)]] | |
− | |||
* <code>[[passwd]] USERNAME</code> | * <code>[[passwd]] USERNAME</code> | ||
− | * <code>[[passwd -l | + | * <code>[[passwd]] -l USERNAME</code> // for disabling password login |
− | * <code> | + | * <code>passwd -u USERNAME</code> // will unlock account if needed |
* <code>[[passwd --status]] USERNAME</code> // show status | * <code>[[passwd --status]] USERNAME</code> // show status | ||
passwd -u $USERNAME | passwd -u $USERNAME | ||
passwd: password expiry information changed. | passwd: password expiry information changed. | ||
+ | |||
+ | [[Busybox]] | ||
passwd -u USERNAME | passwd -u USERNAME | ||
Line 20: | Line 21: | ||
passwd --status USERNAME | passwd --status USERNAME | ||
USERNAME L 11/15/2020 0 99999 7 -1 | USERNAME L 11/15/2020 0 99999 7 -1 | ||
+ | |||
[[journalctl]] | [[journalctl]] | ||
Line 37: | Line 39: | ||
* <code>[[passwd (package)]]</code> | * <code>[[passwd (package)]]</code> | ||
* [[PostgreSQL]]: <code>[[ALTER USER]] user_name WITH PASSWORD 'new_password';</code> | * [[PostgreSQL]]: <code>[[ALTER USER]] user_name WITH PASSWORD 'new_password';</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Activities == | == Activities == | ||
* Read https://www.cyberciti.biz/faq/securing-passwords-libpam-cracklib-on-debian-ubuntu-linux/ | * Read https://www.cyberciti.biz/faq/securing-passwords-libpam-cracklib-on-debian-ubuntu-linux/ | ||
− | |||
== See also == | == See also == |
Advertising: