Password Question

2002-09-25 Thread Darren Wanner
I'm trying to write a perl script that creates a user name and password for new users on a Solaris 8 box. I'm wondering if there's an easy way to send a pregenerated password to the passwd command in a perl script. Something like: system("passwd",$uname,"< $generatedpassword"); Thanks. --

Simple useradd script problem

2002-09-03 Thread Darren Wanner
I'm trying to write a simple script that takes a list of users from a file and creates a user account for them, using the useradd script. The system I'm doing this on is Solaris 8. When I run the script I get the following error. It seems as if it's not accepting the variable in the command li