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: | ||
− | |||
− | |||
− | + | :<code>[[passwd]] USERNAME</code> | |
+ | |||
+ | :<code>[[passwd]] -l $USERNAME</code> // for disabling password login | ||
+ | :<code>passwd -u $USERNAME</code> // will unlock account if needed | ||
− | |||
− | |||
− | |||
passwd -u $USERNAME | passwd -u $USERNAME | ||
passwd: password expiry information changed. | passwd: password expiry information changed. | ||
+ | |||
+ | [[Busybox]] | ||
passwd -u USERNAME | passwd -u USERNAME | ||
Line 18: | Line 18: | ||
passwd: password for USERNAME is already [[unlocked]] | passwd: password for USERNAME is already [[unlocked]] | ||
− | |||
− | |||
[[journalctl]] | [[journalctl]] | ||
Line 25: | Line 23: | ||
== Related terms == | == Related terms == | ||
− | * <code>[[PermitRootLogin]]</code> | + | * <code>[[PermitRootLogin]]</code> in <code>[[sshd_config]]</code> |
+ | * [[Lockout policy]] | ||
* [[PAM]] | * [[PAM]] | ||
* <code>[[/etc/passwd]]</code> (See also [[Zabbix]] <code>/etc/passwd</code> trigger) | * <code>[[/etc/passwd]]</code> (See also [[Zabbix]] <code>/etc/passwd</code> trigger) | ||
Line 32: | Line 31: | ||
* [[Passwordless sudo]] | * [[Passwordless sudo]] | ||
* [[Lockout policy (Windows)]] | * [[Lockout policy (Windows)]] | ||
− | |||
* <code>[[openssl passwd]]</code> | * <code>[[openssl passwd]]</code> | ||
* <code>[[/etc/systemd/logind.conf]]</code> | * <code>[[/etc/systemd/logind.conf]]</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: