Solved

FreeBSD User Permissions

Posted on 2004-10-20
5
432 Views
Last Modified: 2013-11-22
Hello,

Here is my problem...Please refer to http://www.experts-exchange.com/Web/Web_Languages/XML/Q_21161254.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>";
?>
0
Comment
Question by:jpegvarn
5 Comments
 
LVL 3

Expert Comment

by:farpost
ID: 12367016
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.
0
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 12368117
command to launch java is usually called javavm in FreeBSD

launching java when displaying every page makes your website too heavy.
if you cannot avoid this, please consider turck mmcache or something alike.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux performance issues with 100% swap usage, etc 15 96
Write an app 10 71
How should I mount this 3 TB USB Hard disk to my Linux server? 9 122
Solaris acount issues 44 29
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question