#!/bin/bash #Creating the user with home directory /backup/username and rssh login, command uses first input for username useradd -d /backup/$1 -s /usr/bin/rssh $1 #Asking for the customer's email address echo "Please type $1 email address:" read EMAIL #Adding the .forward file in the user's home directory echo $EMAIL > /backup/$1/.forward #Changing the permission so that it is owed by the user /bin/chown $1:$1 /backup/$1/.forward #Asking for the customer's quota size in GB echo "Please enter quota size for $1 in GB" read QUOTASIZE #Using 2nd input to create the quotaspace in bytes QUOTASPACE=`expr $QUOTASIZE \* 1024 \* 1024` #Setting quota for the user setquota -u $1 $QUOTASPACE $QUOTASPACE 0 0 -a