
patk
Deleted
Oct 23, 2000, 9:02 PM
Post #1 of 2
(602 views)
|
|
Creating a new mail account only script.
|
Can't Post
|
|
I am trying to create a script that creates a new email account on my domain. The passwd is in this format: user:*:1924:281::/home/user:/bin/emailonly I cannot open /bin/emailonly so I don't know what I can do. base on the info, i wrote this: ========================= #!/bin/perl ## Password file. $data = "/etc/passwd"; ## Variables for new account. $user = "popplets"; $pass = "Bobdole1"; open(FILE,">>$data"); print FILE "\n "; close(FILE); mkdir("/home/$user/", 0755); print "Content-type:text/html\n\n"; print "The account for $user has been created."; exit; ================================== is there a way to not use etc/passwd?? I'm running on linux 2.0
|