|
From: Carlton T. <ca...@gi...> - 2006-08-22 15:54:21
|
Hi, I need to migrate some users from an old UNIX system to a Linux box. Since I need to do a number of operations, eg. copy user files, I have decided to write a Perl script to automate the task. To simplify things and to take advantage of some of Webmin's functionality, I would like to have my script call the Webmin "save_user.cgi" script to add the users to the Linux box. My script will run on the Linux box and do the following:- 1) read a line from the password file 2) parse the line to extract things like username, enc_password 3) call Webmin's "save_user.cgi" to add new user to linux box 4) rcp user's files from old box to new directories on Linux box 5) chown and chgrp user's files Is it feasible (or even possible) to use the Webmin module in this way? If it is possible, what do I need to do to ensure that the Webmin script will run correctly, eg. setting environment variables. Regards ! -- Carlton ============================= |