I am learning my way around administering a "standard" LAMP server. There are some things I want to do in an automated fashion but am not sure what is available normally in terms of programming languages. I want to write a script that automates some or all of these tedious steps after I create a new account:
- Copies a set of files from one user to another
- Changes ownership
- Changes permissions on certain folders/files
- Finds certain files and then search and replaces either certain lines or parts of lines.
- Copies a database in the mysql server
- Search and replaces certain strings in all fields in all tables in the new database
- Makes a certain user so that they have access to the new database
- Creates a database user
- Grants them all privileges for the new database
If I could create a script that I could open, change certain variable values, upload, execute as root from a terminal and then delete the script that would be fine.
What programing language should I look at?