Linux command
authconfig 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
authconfig --test
Example
authconfig --update --passalgo=sha512
Example
authconfig --update --enableldapauth
Example
authconfig --update --disableldapauth
Example
authconfig --update --enablenis
Example
authconfig --update --enablekrb5
Example
authconfig --update --enablewinbindauth
Example
authconfig --update --enablelocauthorize
说明
authconfig configures system authentication resources on Red Hat-based Linux distributions. It manages PAM stack configuration, nsswitch.conf settings, and related authentication files to enable or disable mechanisms including LDAP, NIS, Kerberos, Winbind, and local authentication. The tool modifies system files to integrate centralized identity providers with the local authentication stack. Use --test to inspect the current configuration before making changes with --update.
参数
- --test
- Display the current configuration without making changes
- --update
- Apply configuration changes
- --passalgo _algorithm_
- Set password hashing algorithm (sha256, sha512)
- --enableldapauth
- Enable LDAP authentication
- --disableldapauth
- Disable LDAP authentication
- --enablenis
- Enable Network Information Service
- --enablekrb5
- Enable Kerberos 5 authentication
- --enablewinbindauth
- Enable Winbind (Active Directory) authentication
- --enablelocauthorize
- Enable local authorization
- --enableshadow
- Enable shadow password file
FAQ
What is the authconfig command used for?
authconfig configures system authentication resources on Red Hat-based Linux distributions. It manages PAM stack configuration, nsswitch.conf settings, and related authentication files to enable or disable mechanisms including LDAP, NIS, Kerberos, Winbind, and local authentication. The tool modifies system files to integrate centralized identity providers with the local authentication stack. Use --test to inspect the current configuration before making changes with --update.
How do I run a basic authconfig example?
Run `authconfig --test` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --test do in authconfig?
Display the current configuration without making changes