LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Administrator Bash Scripts (https://www.linuxquestions.org/questions/programming-9/administrator-bash-scripts-91248/)

[nrx] 09-10-2003 09:56 AM

Administrator Bash Scripts
 
Hi There,

I'm hoping someone can help me here.
I'm trying to find some good linux admin scripts for various tasks including:


adding users, changing passwords, adding entries to .conf files, restarting services etc etc.

Namely, I've been trying to write a script that will automatically add a user, change their password to something random, create a couple directories in the home dir with relevant permissions, add text to vhost.conf and restart apache.

Not asking much, I know. Does anyone have any idea where i might fund such a thing I can tweak to my own needs or know anywhere I can find help etc?

I've been reading my linux bible and trying things out.. but I can't seem to get everything tying together and as this would have to run as root.. I don't want to mess around too much

Thanks :)

twilli227 09-10-2003 08:23 PM

Try this, and part way down are alot of examples.
http://www.itcentrs.lv/linux/docs/HO...ash-Scr-HOWTO/
If this does not help try: http://www.google.com/linux
and search away.


All times are GMT -5. The time now is 09:06 AM.