Look at ssh-keygen for easy logins to the servers.
Use
useradd and
passwd to set up the user account.
Look at 'expect' (
http://linux.die.net/man/1/expect), which you will probably need to install, to handle supplying the username and password at the prompt. I'm guessing that it would be nice to supply these as arguments to the script.
To make use of quotas, do everything in that link (by hand, not in the script) up to:
Code:
quotatool -u username -bq 200M -l '250 Mb' /home
which you will want to do in the script, with the correct username and sizes.
The chrooted user thing is a bit more involved. I recommend that you complete everything else first.
- thobbs