• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL : How to backup/restore configuration using authconfig

by admin

Steps

1. Backup the configuration files using authconfig utility. The general syntax for the command is :

# authconfig --savebackup=[name]

For example :

# authconfig --savebackup=config_backup

2. Backup’s are saved at following location:

# 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. Configurations can be restored using the following command:

# authconfig --restorebackup=[name]

In our example case :

# authconfig --restorebackup=config_backup

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Migrate virtual machines from one host to another in the Red Hat Virtualization environment
  2. CentOS / RHEL 6 : how to start the services interactively during boot (to disable/abort some services)
  3. Linux OS Service ‘NetFS’
  4. How to start/stop Virtual Machines in RedHat Virtualization
  5. How does “chmod -R 755” works
  6. CentOS / RHEL : How to identify/match LUN presented from SAN with underlying OS disk
  7. NFSv4 mountpoint shows incorrect ownerships as nobody:nobody in CentOS/RHEL
  8. CentOS / RHEL 5 : How to configure Interface bonding (NIC teaming)
  9. How to remove unwanted entries in /etc/shadow file
  10. Shell Script to Find Network Interface Link Status and Speed (CentOS/RHEL)

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright