Some time ago I asked for help - how to add large numbers of users and in particular how to import them from other systems eg Acorn L4. Well I've finally got most of the bits in place (thanks to everyone who helped - in particular Richard Naylor). My solution involves a spreadsheet for preparation of the file (I use !Fireworkz) and the creation of a script with one line for each user. eg /usr/sbin/adduser -d /home/96/bp.Amy bp.Amy and then another multiple line script for setting passwords eg ./autopasswd bp.Amy guizmo Where autopasswd is a script which uses the Expect language and processes the passwords without the need for any intervention. I've modified autopasswd to include delays which improves the success rate and also modified it to work with smbpasswd. Autopasswd should be on most people's systems. I use ftp to transfer the script from my RiscPC to the Linux server as a text file and then changed permissions. I'm sure people could come up with more elegant solutions but hey .... it works. PS I'm a big spreadsheet fan for work of this type. If anyone needs any more info then I'll try and help. However, I've got another problem. In the Expect distribution there are two files called passwd.html which accesses passwd.cgi on the server. I do not understand how to make this combination work so that users can change passwords. I've got SWAT working but that seems too complex for kids to use. Do I need to create a service (similar to SWAT) to allow a user to run the html script and access the cgi file? What address do I need to include in the html script so that the cgi script can be linked to? Dave Williams
participants (1)
-
Dave Williams