[Linux] Change user password

passwd command

If you want to change your password


You will be asked for your current password and new password, so enter them.

[~]$ passwd
Change password for user XXX.
Changing password for XXX
Current UNIX password:
Please enter a new UNIX password:
Please re-enter your new UNIX password:
passwd:Password updated correctly

When changing someone else's password

passwd [username]

Recommended Posts

[Linux] Change user password
Linux user commands
[linux] Erase root password
[Amazon Linux 2] Change from public key authentication to password authentication
[Linux] User / group command summary
Add Linux user, how to use useradd command (password specification)
A memorandum to change to Manjaro Linux
Permission and ownership change command [Linux]
Change your Mac terminal user name
Change font size in Serene Linux
With the advent of systemd-homed in 2020, Linux user management will change dramatically.
I created an SFTP-only user on Linux.
Change processing by user input of dialog
[Linux] Change of authority, owner, owning group