Skip to content

Commit

Permalink
Update 5.4.1.4 set_password_hashing_algorithm_logindefs for Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
ericeberry committed Nov 27, 2024
1 parent 222e560 commit fa1349e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# variables = var_password_hashing_algorithm=YESCRYPT

# Make sure ENCRYPT_METHOD is YESCRYPT
if grep -q "^ENCRYPT_METHOD" /etc/login.defs; then
sed -i "s/^ENCRYPT_METHOD\b.*/ENCRYPT_METHOD YESCRYPT/" /etc/login.defs
else
echo "ENCRYPT_METHOD YESCRYPT" >> /etc/login.defs
fi

0 comments on commit fa1349e

Please sign in to comment.