Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to set up 25 student accounts on a Unbuntu 12.04 LTS VM that I have provisioned via Windows Azure for teaching purposes.

Can anyone point me toward some scripts that would automate this process and also offer some advice which command, newusers or adduser, would be preferable? I would like to set up home directories, basic passwords and the usual config/. files (from /etc/skel?). Students should have limited privileges (ie be regular users). I want to avoid them peeking into each others' accounts :-) [or mine], this implies no sudo either of course (which I assume it the default already for non-admin accounts).

If a script would be necessary, I would prefer writing the script in Python, though I can cobble together and run a bash script too.

Thanks, while I'm quite confident as a user, the admin side for more than myself is a bit new to me. I find the command choices a bit confusing for something that would be a regular admin task.

share|improve this question
Please don't cross-post! (AU) (UL) – gertvdijk Oct 6 '13 at 13:56

You must log in to answer this question.

Browse other questions tagged .