La réponse de slm est très bonne, mais je voulais savoir exactement quels fichiers allaient être modifiés. Cela peut être trouvé dans /usr/share/authconfig/authinfo.py
. L'extrait ci-dessous est de CentOS6:
SYSCONFDIR = "/ etc"
PASSWORD_AUTH_PAM_SERVICE_AC = "password-auth-ac"
FINGERPRINT_AUTH_PAM_SERVICE_AC = "fingerprint-auth-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 ("réseau", SYSCONFDIR + "/ sysconfig / network"),
FileBackup ("libuser.conf", SYSCONFDIR + "/ libuser.conf"),
FileBackup ("login.defs", SYSCONFDIR + "/ login.defs"),
FileBackup ("sssd.conf", SYSCONFDIR + "/ sssd / sssd.conf")]
Le code révèle également que les sauvegardes sont stockées ici:
PATH_CONFIG_BACKUPS = "/ var / lib / authconfig"