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:
{{lowercase}}
+
passwd command included in [[passwd (package)]]
<code>passwd</code> command included in [[passwd (package)]]
 
  
  
 
* <code>[[passwd]] USERNAME</code>
 
* <code>[[passwd]] USERNAME</code>
  
* <code>[[passwd -l]] USERNAME</code> // for disabling password login
+
* <code>[[passwd]] -l USERNAME</code> // for disabling password login
* <code>[[passwd -u]] USERNAME</code> // will unlock account if needed
+
* <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 25: Line 27:
  
 
== Related terms ==
 
== Related terms ==
* <code>[[PermitRootLogin]]</code> and <code>[[PasswordAuthentication]]</code> in <code>[[/etc/ssh/sshd_config]]</code>
+
* <code>[[PermitRootLogin]]</code> in <code>[[sshd_config]]</code>
 
* [[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 36: Line 38:
 
* <code>[[/etc/systemd/logind.conf]]</code>
 
* <code>[[/etc/systemd/logind.conf]]</code>
 
* <code>[[passwd (package)]]</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 ==
 
== 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/
* [[macOS]]: https://support.apple.com/en-us/HT202860
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: