LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-10-2003, 09:56 AM   #1
[nrx]
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
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
 
Old 09-10-2003, 08:23 PM   #2
twilli227
Member
 
Registered: May 2003
Location: S.W. Ohio
Distribution: Ubuntu, OS X
Posts: 760

Rep: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
little help with bash scripts sniff Programming 2 10-26-2005 05:17 PM
bash scripts hoffmanyew Programming 3 08-11-2005 01:27 AM
Need Help With Bash Scripts the_woelf Linux - Software 4 06-30-2004 09:09 AM
$? in Bash scripts clinton Linux - Newbie 4 02-20-2004 11:15 AM
Bash scripts? BajaNick Programming 3 07-05-2003 10:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration