This shows you the differences between two versions of the page.
|
isc:labs:03 [2025/01/23 12:36] radu.mantu [03. [15p] Password Hashing] |
isc:labs:03 [2025/10/20 11:02] (current) florin.stancu [04. [5p] Account Locking] |
||
|---|---|---|---|
| Line 82: | Line 82: | ||
| ==== 03. [15p] Password Hashing ==== | ==== 03. [15p] Password Hashing ==== | ||
| - | Fill in the TODOs in ''gen_hash.py'' to generate a new password hash. Using your super user privileges, manually overwrite the old password of our user. | + | Fill in the TODOs in ''gen_hash.py'' to generate a new password hash. Using your super user privileges, manually overwrite the old password of our ''dani.mocanu'' user. |
| Test if you were successful by trying to log in (''su'') using the new password. | Test if you were successful by trying to log in (''su'') using the new password. | ||
| <note warning> | <note warning> | ||
| - | **crypt** was deprecated in PEP 594. See [[https://docs.python.org/3/library/crypt.html|this]] for alternatives. **legacycrypt** works.</note> | + | **crypt** was deprecated in PEP 594. See [[https://docs.python.org/3/library/crypt.html|this]] for alternatives. **legacycrypt** works ([[https://docs.python.org/3.10/library/crypt.html|API docs here]]).</note> |
| <solution -hidden> | <solution -hidden> | ||
| Line 106: | Line 106: | ||
| ==== 04. [5p] Account Locking ==== | ==== 04. [5p] Account Locking ==== | ||
| - | As we want to use a Python script to log in to the user account we worked on so far, you need to delete and lock its password so that password-based authentication is disabled for this user account. | + | As we want to use a Python script to log in to the user account we worked on so far, you need to delete and lock its password so that password-based authentication is disabled for ''dani.mocanu''. |
| **Reference:** | **Reference:** | ||