Difference between revisions of "Passwd (command)"

From wikieduonline
Jump to navigation Jump to search
Line 10: Line 10:
 
  passwd -u $USERNAME
 
  passwd -u $USERNAME
 
  passwd: password expiry information changed.
 
  passwd: password expiry information changed.
 
[[Busybox]]
 
  
 
  passwd -u USERNAME
 
  passwd -u USERNAME
Line 21: Line 19:
 
  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 27: Line 24:
  
 
== Related terms ==
 
== Related terms ==
 +
* [[Busybox]]
 
* <code>[[PermitRootLogin]]</code> and <code>[[PasswordAuthentication]]</code> in <code>[[/etc/ssh/sshd_config]]</code>
 
* <code>[[PermitRootLogin]]</code> and <code>[[PasswordAuthentication]]</code> in <code>[[/etc/ssh/sshd_config]]</code>
 
* [[PAM]]
 
* [[PAM]]

Revision as of 07:40, 5 October 2021

passwd command included in passwd (package)


  • passwd -l USERNAME // for disabling password login
  • passwd -u USERNAME // will unlock account if needed
  • passwd --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

Activities

See also

Advertising: