mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update sshpwd-lxde-iiab.sh.j2
This commit is contained in:
parent
3132f79e16
commit
e94c65f6ab
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ check_user_pwd() {
|
||||||
|
|
||||||
# 2021-08-28: New OS's use 'yescrypt' so use Perl instead of Python (#2949)
|
# 2021-08-28: New OS's use 'yescrypt' so use Perl instead of Python (#2949)
|
||||||
# This also helps avoid parsing the (NEW) 4th sub-field in $y$j9T$SALT$HASH
|
# This also helps avoid parsing the (NEW) 4th sub-field in $y$j9T$SALT$HASH
|
||||||
field2=$(sudo -n grep "^$1:" /etc/shadow | cut -d: -f2) # sets field2 to "" if sudo -s fails to read /etc/shadow
|
field2=$(sudo -n grep "^$1:" /etc/shadow | cut -d: -f2) # Sets field2 to "" if sudo -s fails to read /etc/shadow
|
||||||
[[ $(perl -e "print crypt('$2', '$field2')") == $field2 ]]
|
[[ $(perl -e "print crypt('$2', '$field2')") == $field2 ]]
|
||||||
|
|
||||||
# # $meth (hashing method) is typically '6' which implies 5000 rounds
|
# # $meth (hashing method) is typically '6' which implies 5000 rounds
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue