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) #
##################################################################