Link to home
Start Free TrialLog in
Avatar of jpegvarn
jpegvarnFlag for United States of America

asked on

FreeBSD User Permissions

Hello,

Here is my problem...Please refer to https://www.experts-exchange.com/questions/21161254/Saxon-Processor-PHP-XML-XSL-output-to-Excel-file.html for my previous question.  I have now moved everything over to the following platform and need permissions set.

FreeBSD 4.7
Apache 1.3.31

I'm guessing instead of 'Internet Guest Account,' I need to use 'www' ?  Previously I needed to give 'Internet Guest Account' access to use cmd.exe (please see shell-exec in the php script).

And what is the appropriate permissions to set on the folder?  chmod 777?

I am using a processor in a PHP script, see below:

<?php
$output = shell_exec(java -cp filename.jar x.y.z.MainClass filename.xml filename.xsl');
      echo "<pre>$output</pre>";
?>
Avatar of farpost
farpost

use 'nobody' account instead of 'Internet Guest Account'.
Set 755 permissions on your sites files and folders.
There is no cmd.exe in FreeBSD, you do not need to give any special permissions.

Check that command 'java -cp filename.jar x.y.z.MainClass filename.xml filename.xsl' is working from command line. If yes, it should work in the script.
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial