passwd –stdin没有这个参数(debian)

在RHEL/CentOS中,我们批量创建用户时一般都会用到passwd –stdin参数,但是在debian/ubuntu下没有这个参数:

man passwd
 -a, --all
 This option can be used only with -S and causes show status for all users.
-d, --delete
 Delete a user's password (make it empty). This is a quick way to disable a password for an account. It will set the named account passwordless.
-e, --expire
 Immediately expire an account's password. This in effect can force a user to change his/her password at the user's next log