LinuxQuestions.org
Help answer threads with 0 replies.
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 08-07-2004, 01:07 AM   #1
Punker51
Member
 
Registered: Dec 2003
Posts: 37

Rep: Reputation: 15
my first bash script


http://skankup.is-a-geek.com:9090/~punker/userset

try it if you feel like it and tell me if it works on your distro

Code:
#################################################################
#--------------------------userset 1.0---------------------------#
# Author: Maxime Ouellette			      		 #
# HomePage: http://justdome.afraid.org                		 #
# Version : 1.0                                       		 #  
#                                                     		 #
# Tested on : Mandrake 9.0, Mandrake 10.0             	 	 #
##################################################################
#-------------------------Description----------------------------#
# This script will do for you what you have to do     		 #
# every time you have to create a new user for your   		 #
# server.					      	         #
#						      		 #
##################################################################
#---------------------------Usage--------------------------------#
# This script when executed will show you this menu   		 #
# 1) Create public_html folders and set perms and uploader.php   #
#    : This will create a "public_html" folder in a specified    #
#      user home directory and gives the right perms to access   #
#      it from outside.  It will also ask you if you want to     #
#      copy some html files to it (see para C) and if you want   #
#      to install the very usefull script uploader.php to that   #
#      same user directory (see para D)                          #
# 2) Jail your users in their home directory for proftpd	 #
#    : this will edit proftpd.conf (make sure path is ok)        #
#      to make proftpd chroot the specified user in his homedir  #
# 3) Restart proftpd						 #
# 4) Prepare VNC to make it work for your user                   #
#    : this will modify the file xstartup to make it run kde     #
#      instead of that default grey screen for a specified user  #
#      It will make a copy of original file firstif it exists    #
#      if not, it will create it for you                         #
##################################################################
#-------------------Before Usage---------------------------------#
# A) You should copy this script in /usr/bin                     #
# B) chmod 755 this this script copied in /usr/bin               #
# C) if you want to be able to copy your "starter web files" to  #
#    the specified user, you have to set the first variable      #
#    named files1                                                #
# D) if you want to be able to install uploader.php to the       #
#    specified user, you must set a value for files2             #
# E) this script must be executed with admin privileges (su)     #
##################################################################
 
  


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
Bash script Linh Programming 4 04-21-2004 05:19 PM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 12:20 AM
bash script - incrementing a filename in a script tslinux Programming 10 08-05-2003 11:58 PM
bash script brian0918 Programming 7 06-12-2003 06:06 PM
bash script prob: how can i tell the script that a 'dd' has finished? Frustin Linux - General 2 04-02-2003 05:34 AM

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

All times are GMT -5. The time now is 10:01 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