Originally Posted by trist007
This is concerning the normal login password at command line by changing via the 'passwd' command. Is there a way to change the type of passwords used? For example, the majority of linux distros use MD5. In Slackware or Centos, where would I change the security setting to go from MD5 to DES or some other encryption?
Change the ENCRYPT_METHOD variable in the /etc/login.defs
file. The change will only affect new passwords, but you can force a user to set a new password (so that his/her /etc/shadow
file entry is re-created using the new hash algorithm) by expiring it, like (example):
This way, the user will be required to set a new password next time he/she logs in.