5

Linux常用命令-42:passwd

 2 years ago
source link: https://xugaoxiang.com/2022/06/13/linux-cmds-42-passwd/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

passwd 命令用于设置用户的认证信息,操作需要管理员权限。

常用格式:passwd [参数]

常用参数:

4b13b13b37f93997.png
# 修改当前用户的密码
passwd

# 修改root的密码
passswd root

# 锁定用户密码,不允许修改
passwd -l xugaoxiang

# 解除锁定
passwd -u xugaoxiang

# 清除密码
passwd -d xugaoxiang

# 下次登录修改密码
passwd -e xugaoxiang

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK