changepassword
此 ArcGIS Data Store 实用程序用于关系存储。
ArcGIS Data Store 将为关系存储使用的数据库账户随机生成用户名和密码。 如果站点要求您设置自己的密码,则请获取关系存储账户的密码,然后运行 changepassword 来重置密码。
使用 listadminusers 实用程序获取管理员用户的用户名和密码;使用 listmanageduser 实用程序获取要素数据所有者的用户名和密码。
必须在主关系存储计算机上运行 changepassword 实用程序。 要识别主计算机,可运行 describedatastore 实用程序。
语法
changepassword <username> <new password> [--prompt {yes | no}]
示例
在本示例中,用户 gwi_n2Te0 的密码被更改为 Phfl4mp!。
./changepassword.sh gwi_n2Te0 Phfl4mp
changepassword gwi_n2Te0 Phfl4mp
You are going to change the password for user gwi_n2Te0.
Do you want to continue (Yes or No)?Yes
如果需要编写密码更改脚本(包括禁用确认提示符的标记),则请按以下示例操作:
./changepassword.sh gwi_n2Te0 Phfl4mp --prompt no
changepassword gwi_n2Te0 Phfl4mp --prompt no