I am a newbee in linux and scripting in general. I am trying to add a user to my ubuntu box by running a script which provides username, and other stuff. What i have managed to do is to execute the script and the user is added (writing stuff to /etc/password and /etc/shadow), at the end the script then tries to initialise the password for the user (using : passwd $username). **** this is where my problem is ****.
The issue is i dont want to type the password. i just want to send it as a parameter.
Is there any way to add user and apply password by executing the script?
Is it possible to run this script say from a web interface (php etc) where an admin capture user details and by submitting the form the user is added?
Bookmarks