As the name suggest passwd command is used to change the password of system users. If the passwd command is executed by non-root user then it will ask for the current password and then set the new password of a user who invoked the command.
Get the Free Newsletter!
Subscribe to Developer Insider for top news, trends, & analysis