• 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. sestatus Command Examples in Linux
  2. How to mount and umount a file system in Linux
  3. How to Install awscli
  4. How to Enable Disk Quotas on an XFS File System
  5. chattr Command Examples to Change File Attributes (Make files immutable)
  6. more Command Examples in Linux
  7. How To Configure Restricted Bash Shell in Linux
  8. Wallch (Wallpaper Changer) – Rotate Ubuntu Desktop Wallpapers
  9. How to Change or Rename a Mount Point in Linux
  10. ufw Command Options

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright