修改Linux密码

CHPASSWD(8)               System Management Commands               CHPASSWD(8)

NAME
       chpasswd - update passwords in batch mode

SYNOPSIS
       chpasswd [options]

DESCRIPTION
       The chpasswd command reads a list of user name and password pairs from
       standard input and uses this information to update a group of existing
       users. Each line is of the format:

       user_name:password

例:

echo "test:d7IPtEX7y#a5^B&" | chpassd

posted @ 2023-02-14 10:23  Justtosee  阅读(16)  评论(0编辑  收藏  举报