I read the O'Reilly book and misunderstood it... I consider myself duly enlightened and a happy bunny with a working script...
Thanks, much appreciated..
Simon
On Monday 10 Jun 2002 7:54 pm, Richard Kettlewell wrote:
Simon simon@sparksy.org.uk writes:
I've been asked to do a cgi in perl that will create and delete user accounts..
So I've setuid a script, but can't get it to add users using a system call..
system("/usr/sbin/useradd", "-g 45 -s /bin/false -d /home/popusers/users/goresmail/<userid here>");
That's not how you use system() in Perl.
system("useradd", "-g", "45", ...); or system("useradd -g 45 ...");
"man perlfunc" has the details.