GNU/Linux >> LINUX-Kenntnisse >  >> Linux

CentOS / RHEL :So sichern/wiederherstellen Sie die Konfiguration mit authconfig

Schritte

1. Sichern Sie die Konfigurationsdateien mit dem Dienstprogramm authconfig. Die allgemeine Syntax für den Befehl lautet:

# authconfig --savebackup=[name]

Zum Beispiel:

# authconfig --savebackup=config_backup

2. Sicherungen werden an folgendem Ort gespeichert:

# ll /var/lib/authconfig/backup-config_backup/
total 80
-rw-r--r-- 1 root root  401 Oct 28 00:18 authconfig
-rw-r--r-- 1 root root    1 Oct 28 00:18 cacheenabled.conf
-rw-r--r-- 1 root root  830 Oct 28 00:18 fingerprint-auth-ac
-rw-r--r-- 1 root root  512 Oct 28 00:18 krb5.conf
-rw-r--r-- 1 root root 2293 Oct 28 00:18 libuser.conf
-rw-r--r-- 1 root root 1816 Oct 28 00:18 login.defs
-rw-r--r-- 1 root root   67 Oct 28 00:18 network
-rw-r--r-- 1 root root 4290 Oct 28 00:18 nslcd.conf
-rw-r--r-- 1 root root 1722 Oct 28 00:18 nsswitch.conf
-rw-r--r-- 1 root root  464 Oct 28 00:18 openldap.conf
-rw-r--r-- 1 root root 8857 Oct 28 00:18 pam_ldap.conf
-rw-r--r-- 1 root root 1174 Oct 28 00:18 password-auth-ac
-rw-r--r-- 1 root root  882 Oct 28 00:18 smartcard-auth-ac
-rw-r--r-- 1 root root  844 Oct 28 00:18 smb.conf
-rw-r--r-- 1 root root  416 Oct 28 00:18 sssd.conf
-rw-r--r-- 1 root root 1174 Oct 28 00:18 system-auth-ac
-rw-r--r-- 1 root root  585 Oct 28 00:18 yp.conf

3. Konfigurationen können mit dem folgenden Befehl wiederhergestellt werden:

# authconfig --restorebackup=[name]

In unserem Beispielfall:

# authconfig --restorebackup=config_backup


Linux
  1. MySQL:So sichern (dumpen) und wiederherstellen Sie eine Datenbank mit mysqldump

  2. So installieren Sie TeamViewer auf CentOS 6 / RHEL 6

  3. CentOS / RHEL:So verkleinern Sie das LVM-Root-Dateisystem

  4. CentOS / RHEL :So deaktivieren Sie die Root-Anmeldung oder den Root-Zugriff auf einem System

  5. So ändern Sie den Schnittstellennamen in CentOS/RHEL 8 mit prefixdevname

So sichern und wiederherstellen Sie Daten mit Restic unter Linux

So sichern und wiederherstellen Sie Dateien mit BorgBackup unter Linux

Wie stellt man eine Datenbanksicherung mit JetBackup 5 wieder her?

CentOS / RHEL 7:So setzen Sie das Root-Passwort zurück

CentOS / RHEL 5,6 :So ändern Sie die Zeitzone

So setzen Sie das Root-Passwort in CentOS/RHEL 8 zurück