why don't you try to merge all the questions that you have in one post ? I got confused when surfing through the threads.
Script ? Hm.. useradd is script. On most Unix system is interactive :
HTML Code:
useradd ravi
Please choose home dir :
etc.....otherwise use man useradd and see the available options, put them in simple shell script and call it.
My point is that there are many ways to do it ( more than one "Perl"
) so use the freedom that UNIX gives to explore, search, try, fail, try again, read the man, etc. That's the most exciting part of *X