| Site Admin |
 |
Joined: Sun May 15, 2005 9:36 pm Posts: 644 Location: Des Moines, Iowa
|
|
Sounds more like homework to me tbh. I'll get you pointed in the right direction though.
Ask for a desired username and password. --- look at using "read -p" Create a local user account on the server with the entered details. ----- look at using "useradd" (man useradd, pay special attention to the flags) Create a MySQL user with the entered details. ----- look at "mysql" (man mysql) also search here for mysql examples for interacting with mysql from the command line. Create a symlink from /home/USERNAME/ to /var/www/USERNAME/ ------- look at "ln" (man ln for more help)
Note the man pages are there to help you. IE: man COMMANDYOUWANTTOKNOWMOREABOUT
|
|