A file can also be redirected into chpasswd for processing.
还可以把文件重定向到chpasswd进行处理。
Once all the users have been processed, the file is piped through chpasswd.
处理完所有用户之后,通过管道把这个文件连接到chpasswd。
Though chpasswd can be used interactively, I suggest using it in non-interactive mode.
尽管可以以交互方式使用chpasswd,但是我建议以非交互方式使用它。
Next, the user "ibmeng" is created, and the password is set for the user using chpasswd.
接下来,创建用户“ibmeng”,使用chpasswd设置此用户的密码。
The login and password details can also be contained in a string and piped through to chpasswd, like so.
还可以把登录名和密码信息包含在一个字符串中,然后通过管道连接到chpasswd,如下所示。
Notice the use of the clear flags option in the chpasswd command; it has cleared all flags value in that field.
注意chpasswd命令中的清除标志选项;它清除字段中的所有标志值。
Using pwgen along with chpasswd allows the system administrator to automate the task of setting user passwords.
系统管理员可以通过结合使用chpasswd和pwgen自动地设置用户密码。
If it is, then the user name and generated password is appended to the file passfile in the format for chpasswd to process.
如果存在,就按照chpasswd所需的格式把用户名和生成的密码追加到passfile文件中。
Ideally the script should also contain the chpasswd and pwgen routines to change passwords in a single hit as demonstrated in this article.
理想情况下,脚本还应该包含chpasswd和pwgen例程,以便方便地更改密码。
However, using the AIX utility chpasswd (which is also shipped with Linux variants), these tasks can be carried out and repeated with ease.
但是,通过使用AIX实用程序chpasswd(Linux 系统也附带这个工具),可以简便地重复执行这些任务。
Now querying user alpha via pwdadm we can see that the flags value ADMCHG has been set, which is the chpasswd default setting when resetting passwords.
现在,通过pwdadm查询用户alpha,可以看到已经设置了标志值admchg,这是重新设置密码时chpasswd的默认设置。
In this article, I will demonstrate the use of chpasswd and pwgen, and how they can be used interactively, or in batch, when dealing with password changes.
在本文中,我将演示chpasswd和pwgen的用法,以及如何以交互或批处理方式使用它们处理密码更改。
In this article, I will demonstrate the use of chpasswd and pwgen, and how they can be used interactively, or in batch, when dealing with password changes.
在本文中,我将演示chpasswd和pwgen的用法,以及如何以交互或批处理方式使用它们处理密码更改。
应用推荐