changing password for linux user code example Example 1: change password linux passwd userNameHere Example 2: change user password centos 7 command line sudo passwd userlogin