Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove --stdin option use for passwd #1927
By substituting 'usermod -p' for 'passwd --stdin' when setting user pass we avoid potential future issues on passwd's deprication / removal of the --stdin option: as has been observed in more defensive / progressive implementations of passwd. Elements of commit/pr: - Drop 'passwd --stdin' in favour of 'usermod -p'. - Use crypt module for password pre-encrypt as required for above change, ensuring sha-512 (observed current system default). - Use random full length (16 chars) salt in above. - Add comments for post python3 move enhancements re crypt's use.
- Loading branch information