命令:chpasswd
Examples
1 To set passwords for users from the command line, type:
chpasswd
Followed by entering username:password pairs, one pair per line.
Enter CTRL+D when finished.
user1:passwd1
user2:passwd2
CTRL+D
2 To set passwords for users contained in a file named mypwdfile,
type the following:
cat mypwdfile | chpasswd
Note that mypwdfile must contain username:password pairs; one pair
per line. For example:
user1:passwd1
user2:passwd2
...
阅读(1126) | 评论(0) | 转发(0) |