On Mon, Jun 01, 2015 at 11:49:39AM -0500, Okupandolared wrote: > Hi, > > I have an web form. > > I need send of webform to script bash > > webform.html --> PHP proces --> create.sh > > create.sh > #!/bin/ksh > # Create user > > echo "hi!! your pass $1" > crypted="$(echo -n "$1" | smtpctl encrypt )" > maildir="$3/$2/" > echo -e "$2@$3" >> recipients > echo -e "$2@$3\t$crypted" >> credentials > echo "ejabberdctl register $2 $3 $1" > echo "INSERT INTO mails (userid, domain, password, maildir) VALUES > ('$2', '$3','$crypted', '$maildir');" | mysql -umyuser -mypass mail;
Hoho, it won't run in chroot, smtpd doesn't have socket in chroot, same for ejabberctl. You need to have some lightweight communication "protocol" between chroot and an app outside which would sanitize input and do the work. j.