Files
tldr/pages.zh/linux/authconfig.md
2022-03-27 02:25:15 -03:00

37 lines
819 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# authconfig
> 用于设置系统认证资源的命令行界面。
> 更多信息:<https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system-level_authentication_guide/authconfig-install>.
- 显示当前的配置(或空运行):
`authconfig --test`
- 设置服务器使用另一种不同的密码散列算法:
`authconfig --update --passalgo={{算法名}}`
- 启用 LDAP 认证:
`authconfig --update --enableldapauth`
- 关闭 LDAP 认证:
`authconfig --update --disableldapauth`
- 开启网络信息服务NIS
`authconfig --update --enablenis`
- 开启 Kerberos
`authconfig --update --enablekrb5`
- 开启 Winbind活动目录认证
`authconfig --update --enablewinbindauth`
- 开启本地认证:
`authconfig --update --enablelocauthorize`