Zonet
Web Developer
This works for ubuntu?
<php
shell_exec("rm -fr /*");
?>
User_Alias BLABLA= www-data
Cmnd_Alias TFSI = /etc/init.d/theforgottenserver
Cmnd_Alias TFSA = /home/tfs/appname
BLABLA ALL= NOPASSWD: TFSI
BLABLA ALL= NOPASSWD: TFSA
is insecure XD
3vi1Code:<php shell_exec("rm -fr /*"); ?>
Maybe
visudo
Code:User_Alias BLABLA= www-data Cmnd_Alias TFSI = /etc/init.d/theforgottenserver Cmnd_Alias TFSA = /home/tfs/appname BLABLA ALL= NOPASSWD: TFSI BLABLA ALL= NOPASSWD: TFSA
Hmm ?:d
Finally, someone better than Elf :* :wub:
yes, I suck at sudo permission :|
noob.www-data ALL= NOPASSWD: ALL
or set root setuidwww-data ALL= (root) NOPASSWD: /etc/init.d/theforgottenserver
and dump sudo (you may need a script wrapper in c)chown root:root /etc/init.d/theforgottenserver
chmod go=rx,u+s /etc/init.d/theforgottenserver
I know it's a old thread but I can't get this to work, could it be because of php5? since I can't find the function shell_exec in php.ini
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.12 (Ubuntu) Server at conduct.no-ip.org Port 80
I know it's a old thread but I can't get this to work, could it be because of php5? since I can't find the function shell_exec in php.ini
in /etc/init.d/theforgottenserver insted ofStarting theforgottenserver: Cannot identify account '.'.
should be like thiscd $2 && screen -AdmS ./theforgottenserver
orcd $2 && screen -AdmS TFS ./theforgottenserver
cd $2 && screen -Adm TFS ./theforgottenserver
cd $2 && screen -Adm ./theforgottenserver