Linux – Cloud-init, note-to-self

Tweet Just a reminder for myself. Can use in Cloud-init to set password for the root account. #cloud-config ssh_pwauth: true users: - name: root lock_passwd: false hashed_passwd: HASHED_PASSWORD ssh_authorized_keys: - ssh-rsa <key>

Linux – Password has been used already. Choose another

Tweet Just a quick reminder, note-to-self Linux – Password has been used already. Choose another root@linux:~ # passwdChanging password for root.New Password:Reenter New Password:Password has been used already. Choose another.Password changed Linux is keeping the old password stored on /etc/security/opasswd. Delete the line containing the user that you’re trying to change the password.It is encrypted ...