11 Jun
2002
11 Jun
'02
9:11 a.m.
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.
8676
Age (days ago)
8676
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon