Manually create linux user password hashs
Manually creating a password under linux for e.g. /etc/shadow or kickstart isn’t really easy. I searched for a while until I found the userdbpw utility. On Debian Systems (including Ubuntu) it can be installed with
apt-get install courier-authlib-userdb
For most distributions the md5 algorithm is used to create passwords. The userdbpw command for md5 passwords is:
userdbpw -md5
More information on userdbpw can be found in its manpage.
Tags: admin, debian, linux, md5, password, ubuntu, userdb, userdbpw