I am wanting to write a script to handle a few things 1. decrypt an encrypted password 2. create new directory 3. put .htaccess file into the new directory 4. allow file upload and subsequent unzip of files into the new directory 5. email to admin of the creation and subsequent events
The password I want to use is a power-user pw (almost root priviledges) so I want to have the thing entered into the form in an encrypted version, and the script would call another script (not a sub) to handle the decryption and pass back the argument to the system call to login as the user and create the directory. ie: enter user: bear enter pw: r4t4 dir to create: fred file to upload: freddies_pics.zip user for logins: friends pass for logins: guest script does: system login: bear password: yada login successful mkdir fred cd fred upload successful unzip freddies_pics.zip touch .htaccess encrypt guest put friends:erisy > .htaccess cat ../.root.priviledges > .htaccess output to screen: Directory created successfully http://server/fred/ please login to verify mail to admin: subject: New directory and files done for $user system login: bear password: yada login successful mkdir fred cd fred upload successful unzip freddies_pics.zip touch .htaccess encrypt guest put friends:erisy > .htaccess system is locked down to them and the other codes per settings. That's the design of the flow, now I just need to get the stuff written. Any suggestions on an easy way to do this? Thanks, Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]