tldr/pages.zh/linux/authconfig.md

37 lines
817 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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`