Linux common commands-42: passwd

The passwd command is used to set user authentication information. The operation requires administrator privileges.

Common format: passwd [parameter]

Common parameters:


 # 修改当前用户的密码passwd # 修改root的密码passswd root # 锁定用户密码,不允许修改passwd -l xugaoxiang # 解除锁定passwd -u xugaoxiang # 清除密码passwd -d xugaoxiang # 下次登录修改密码passwd -e xugaoxiang

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.