LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 10: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, 09: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:17 PM
bash scripts hoffmanyew Programming 3 08-11-2005 02:27 AM
Need Help With Bash Scripts the_woelf Linux - Software 4 06-30-2004 10:09 AM
$? in Bash scripts clinton Linux - Newbie 4 02-20-2004 12:15 PM
Bash scripts? BajaNick Programming 3 07-05-2003 11:13 PM

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

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

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