• 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

How to Switch Password Algorithm on CentOS/RHEL

by admin

Question: How to change the password hashing algorithm on a CentOS/RHEL system.

1. Check to current hashing algorithm :

# authconfig --test| grep hash
password hashing algorithm is sha512

2. Change default password hashing algorithm :

# authconfig --passalgo=md5 --update

or

# authconfig --passalgo=sha5 --update
Note : The new algorithm in passwd/shadow files will apply until next execution of passwd command.

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. How to generate PGP keys using GPG on Linux
  2. How to install and configure Samba in CentOS / RHEL
  3. arpspoof: command not found
  4. coredumpctl Command Examples in Linux
  5. Beginners guide to vi editor (command line reference)
  6. nmon Command Examples in Linux
  7. How to configure CentOS/RHEL 6 system to not used last 3 passwords used
  8. CentOS / RHEL 7 : sysctl kernel parameter doesn’t take effect after reboot
  9. RHEL 7 – RHCSA Notes : Create, delete, and modify local groups and group memberships.
  10. How To Check a Disk for Bad Blocks or Disk Errors on CentOS / RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright