GNU/Linux >> Linux の 問題 >  >> Linux

CentOS / RHEL :authconfig を使用して構成をバックアップ/復元する方法

歩数

1. authconfig ユーティリティを使用して構成ファイルをバックアップします。コマンドの一般的な構文は次のとおりです:

# authconfig --savebackup=[name]

例:

# authconfig --savebackup=config_backup

2. バックアップは次の場所に保存されます:

# 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. 次のコマンドを使用して構成を復元できます:

# authconfig --restorebackup=[name]

この例では:

# authconfig --restorebackup=config_backup


Linux
  1. CentOS 7 /RHEL7にMariaDBをインストールする方法

  2. CentOS / RHEL 7 :grubby を使用してレスキュー イメージを削除する方法

  3. CentOS / RHEL :UUID を使用してファイルシステムをマウントする方法

  1. MySQL:mysqldumpを使用してデータベースをバックアップ(ダンプ)および復元する方法

  2. CentOS 6 /RHEL6にTeamViewerをインストールする方法

  3. CentOS/RHEL 8 で dnf を使用してパッケージをインストールする方法

  1. CentOS / RHEL :LVM ルート ファイル システムを縮小する方法

  2. CentOS / RHEL :システムで root ログインまたは root アクセスを無効にする方法

  3. prefixdevname を使用して CentOS/RHEL 8 のインターフェイス名を変更する方法