if [ "$1" = "" ]; then echo "The command is 'au {username}'" exit else echo The username should be all lower case! echo The username should not BEGIN with a number! echo Adding $1 useradd -g ftpusers -s /sbin/nologin -c 'FTP USER' $1 echo Setting permissions on /home/$1 chown $1:ftpusers /home/$1 chmod 755 /home/$1 echo Setting up 5Mb quota for user quotatool -u $1 -bq 5M /home echo Setting Password passwd $1 echo Done fi