I'm trying to automate the process of upgrading as much as possible. I want to be able to create a new ordinary user account in a post installation bash script. This will allow me to create a user account from a script, without having to start a GUI in X11.
Reading the man page for useradd says:
-p, --password PASSWORD
The encrypted password, as returned by crypt(3).
The default is to disable the account.
There is not a crypt command on the system to create the encrypted password?
How do I create the encrypted password for a new user account