Solved

FreeBSD User Permissions

Posted on 2004-10-20
5
429 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 61

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
AIX 5.3 group password policy changes 7 22
AIX  NFS  question 5 91
auto mounter on solaris 1 40
Skill Development 15 127
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now