# !/bin/sh # run this script to add all the entries to the right places # files: /etc/ftpchroot , /etc/irc-users , quota? echo "Pretty simple, just enter the users name, ill do the rest =)" sleep 2 printf "enter username [none]: " ; read fd if test ! -z $fd ; then echo $fd >> /etc/irc-users if test ! -z $fd ; then echo $fd >> /etc/ftpchroot if test ! -z $fd ; then edquota -p someuser $fd if test ! -z $fd ; then /sbin/ipfw -q add 00002 count ip from any to any uid $fd if test ! -z $fd ; then /sbin/ipfw -q add 31000 allow tcp from 216.218.235.0/24 to any 6660-6669,7000 uid $fd fi fi fi fi fi echo "All done Proceed" echo "You have now added the user to hell, have a good day." echo "Rooted Networks, Inc. 2000" exit 1