I am trying to create user accounts on theLinux (Fedora 10) and automatically assign a password using the bash script(or otherwise, if need be).
I don't find it difficult to create the user via Bash e.g.:
[whoever@server ]# /usr/sbin/useradd newuser
Is it possible to assign the password in the Bash, something functionally similar to this, but automatically:
[whoever@server ]# passwd newuser
Changing password for user testpass.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[whoever@server ]#