The passwd
command is used to set user authentication information. The operation requires administrator privileges.
Common format: passwd [parameter]
Common parameters:
Example
# 修改当前用户的密码passwd # 修改root的密码passswd root # 锁定用户密码,不允许修改passwd -l xugaoxiang # 解除锁定passwd -u xugaoxiang # 清除密码passwd -d xugaoxiang # 下次登录修改密码passwd -e xugaoxiang
This article is reprinted from https://xugaoxiang.com/2022/06/13/linux-cmds-42-passwd/
This site is for inclusion only, and the copyright belongs to the original author.