Adding 25 (student) users to Linux system (Ubuntu 12.04 LTS) VM

1

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.

Levon

Posted 2013-10-05T17:47:32.980

Reputation: 740

Please don't cross-post! (AU) http://askubuntu.com/q/354131/88802 (UL) http://unix.stackexchange.com/q/93798/23363

– gertvdijk – 2013-10-06T13:56:50.103

No answers