PowerScaleOneFS 9.7.0.0 CLI 命令参考

PDF

isi auth users modify

修改本地用户。

语法

isi auth users modify {<user> | --uid <integer> | --sid <string>}
  [--enabled {yes | no}]
  [--expiry <timestamp>]
  [--unlock]
  [--email <string>]
  [--gecos <string>]
  [--home-directory <path>]
  [--password-expires {yes | no}]
  [{--primary-group <string> | --primary-group-gid <integer> 
    | --primary-group-sid <string>}]
  [--prompt-password-change {yes | no}]
  [--shell <path>]
  [--new-uid <integer>]
  [--disable-when-inactive <boolean>
  [--zone <string>]
  [--add-group <name>]
  [--add-gid <id>]
  [--remove-group <name>]
  [--remove-gid <id>]
  [--provider <string>]
  [--verbose]
  [--force]

选项

此命令需要 <user>--uid <integer>--sid <string>

<user>
按名称指定用户。
--uid <integer>
按 UID 指定用户。
--sid <string>
按 SID 指定用户。
--enabled {yes | no}
启用或禁用用户。
{--expiry | -x} <timestamp>
指定用户帐户的到期时间,可使用日期格式 <YYYY>-<MM>-<DD> 或日期/时间格式 <YYYY>-<MM>-<DD>[T<hh>:<mm>[:<ss>]。
--unlock
解锁用户帐户(如果锁定)。
--email <string>
指定用户的电子邮件地址。
--gecos <string>
在用户的密码文件中指定下列 Gecos 字段条目的值:
Full Name: 
Office Location: 
Office Phone: 
Home Phone: 
Other information: 

必须在逗号分隔列表中输入值,而且必须将包含空格的值放在引号内。例如,包含这些值的 --gecos="Jane Doe",Seattle,555-5555,,"Temporary worker" 选项将生成以下条目:

Full Name: Jane Doe
Office Location: Seattle
Office Phone: 555-5555
Home Phone:
Other information: Temporary worker
--home-directory <path>
指定用户的主目录路径。
--password-expires {yes | no}
指定是否允许密码到期。
--primary-group <name>
按名称指定用户的主组。
--primary-group-gid <integer>
按 GID 指定用户的主组。
--primary-group-sid <string>
按 SID 指定用户的主组。
--prompt-password-change {yes | no}
提示用户在下次登录时更改密码。
--shell <path>
指定 UNIX 登录 Shell 的路径。
--new-uid <integer>
为用户指定新的 UID。不建议设置此选项。
--disable-when-inactive <boolean>
当用户帐户处于非活动状态的时间超出指定值时,该帐户会被禁用。
--zone <string>
指定包含该用户的访问分区的名称。
--add-group <name>
指定要将用户添加到其中的组的名称。重复此选项可指定多个列表项。
--add-gid <integer>
指定要将用户添加到其中的组的 GID。重复此选项可指定多个列表项。
--remove-group <name>
指定要从中删除用户的组的名称。重复此选项可指定多个列表项。
--remove-gid <integer>
指定要从中删除用户的组的 GID。重复此选项可指定多个列表项。
--provider <string>
指定以下格式的身份认证提供程序:<type>:<instance>。有效的提供程序类型包括 adsldapnisfilelocal。例如,可以将名为 auth1 的 LDAP 提供程序指定为 ldap:auth1
{--verbose | -v}
显示运行命令的结果。
{--force | -f}
禁止显示命令行提示符和消息。

对此内容评级

准确性
有用性
易理解性
这篇文章对您有帮助吗?
0/3000 characters
  请提供评级(1-5星)。
  请提供评级(1-5星)。
  请提供评级(1-5星)。
  请选择这篇文章是否有帮助。
  注释中不得包含以下特殊字符:<>()\