How can I acheive this? Specifically I wan't to run a command/bash script/expect script in a PHP file to add a user, ftp/sftp, home dir etc etc, from a user with limited privileges (wwwroot or nobody).
My initial idea was to use EXPECT, but I couldn't figure out how to pass the required variable parameters from PHP to the EXPECT script for the necessary commands (i.e. su root, useradd, passwd etc).
Help for any of this would be appreciated.


LinkBack URL
About LinkBacks
Reply With Quote
