Answers:
您可以运行authconfig-gtk
以了解authconfig
可以修改的内容。
通常,这些选项卡中的大多数信息都是在目录下操作信息/etc/sysconfig
。那里有许多与基于RedHat发行版的配置有关的文件,例如Fedora,CentOS或RHEL。
例如,有一个具有讽刺意味的文件,authconfig
其中包含上述屏幕快照中对话框的选择。
$ more /etc/sysconfig/authconfig
USEMKHOMEDIR=no
USEPAMACCESS=no
CACHECREDENTIALS=yes
USESSSDAUTH=no
USESHADOW=yes
USEWINBIND=no
USEDB=no
FORCELEGACY=no
USEFPRINTD=no
FORCESMARTCARD=no
PASSWDALGORITHM=sha512
USELDAPAUTH=no
USEPASSWDQC=no
USELOCAUTHORIZE=yes
USECRACKLIB=yes
USEWINBINDAUTH=no
USESMARTCARD=no
USELDAP=no
USENIS=no
USEKERBEROS=no
USESYSNETAUTH=no
USESSSD=no
USEHESIOD=no
slm的答案非常好,但是我对要修改哪些文件确实很感兴趣。可以在中找到/usr/share/authconfig/authinfo.py
。以下摘录来自CentOS6:
SYSCONFDIR =“ /等” PASSWORD_AUTH_PAM_SERVICE_AC =“密码验证-交流” FINGERPRINT_AUTH_PAM_SERVICE_AC =“指纹认证-交流” SMARTCARD_AUTH_PAM_SERVICE_AC =“ smartcard-auth-ac” all_configs = [ FileBackup(“ hesiod.conf”,SYSCONFDIR +“ / hesiod.conf”), FileBackup(“ yp.conf”,SYSCONFDIR +“ / yp.conf”), FileBackup(“ ldap.conf”,SYSCONFDIR +“ / ldap.conf”), FileBackup(“ nss_ldap.conf”,SYSCONFDIR +“ / nss_ldap.conf”), FileBackup(“ pam_ldap.conf”,SYSCONFDIR +“ / pam_ldap.conf”), FileBackup(“ nslcd.conf”,SYSCONFDIR +“ / nslcd.conf”), FileBackup(“ openldap.conf”,SYSCONFDIR +“ / openldap / ldap.conf”), FileBackup(“ krb5.conf”,SYSCONFDIR +“ / krb5.conf”), FileBackup(“ krb.conf”,SYSCONFDIR +“ / krb.conf”), FileBackup(“ pam_pkcs11.conf”,SYSCONFDIR +“ / pam_pkcs11 / pam_pkcs11.conf”), FileBackup(“ smb.conf”,SYSCONFDIR +“ / samba / smb.conf”), FileBackup(“ nsswitch.conf”,SYSCONFDIR +“ / nsswitch.conf”), CacheBackup(“ cacheenabled.conf”,“”), FileBackup(“ system-auth-ac”,SYSCONFDIR +“ / pam.d /” + AUTH_PAM_SERVICE_AC), FileBackup(“ password-auth-ac”,SYSCONFDIR +“ / pam.d /” + PASSWORD_AUTH_PAM_SERVICE_AC), FileBackup(“ fingerprint-auth-ac”,SYSCONFDIR +“ / pam.d /” + FINGERPRINT_AUTH_PAM_SERVICE_AC), FileBackup(“ smartcard-auth-ac”,SYSCONFDIR +“ / pam.d /” + SMARTCARD_AUTH_PAM_SERVICE_AC), FileBackup(“ authconfig”,SYSCONFDIR +“ / sysconfig / authconfig”), FileBackup(“ network”,SYSCONFDIR +“ / sysconfig / network”), FileBackup(“ libuser.conf”,SYSCONFDIR +“ / libuser.conf”), FileBackup(“ login.defs”,SYSCONFDIR +“ / login.defs”), FileBackup(“ sssd.conf”,SYSCONFDIR +“ / sssd / sssd.conf”)]
该代码还显示备份存储在此处:
PATH_CONFIG_BACKUPS =“ / var / lib / authconfig”