[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] Adding new users



Hi,

We have a SAMBA test server working and are trying to create accounts
for lots of users. We have a file, userlist.txt, exported from the
school database, with entries in the format

user1:password:510:100:Name1 Class:/home/user1:/bin/bash
user2:password:511:100:Name2 Class:/home/user2:/bin/bash

by running the command:

newusers /tmp/userlist.txt

we create accounts for all the new users automatically. Great so far.
However, to make the accounts work we then have to manually copy all the
files from /etc/skel to each users home directory. Not too bad for a few
dozen users, but we have 2000 :(

Next, to add entries for the users in /etc/smbpasswd we have to run the
command:

smbpasswd -a user1

and supply the password in response to the prompts - for every user
individually :-(

Since this is Linux not Windoze there must be an easier way. Please can
someone point us in the right direction.

Thanks
-- 
John Southall
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.