tldr/pages.zh/linux/authconfig.md

36 lines
669 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
> 用于设置系统认证资源的命令行界面。
- 显示当前的配置(或空运行):
`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`