Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    142

    Default How do we run Java with /tmp noexec ?

    Hi wonder if someone would be kind enough to advise how our clients can run java from shell or crontab when we have /tmp and /var/tmp etc set with noexec for security reasons.

    Currently when trying to run it gives:

    /usr/bin/java: line 67: /var/tmp/javagM2660: Permission denied
    /usr/bin/java: line 67: /var/tmp/javagM2660: Success

    and does not run due to the permissions issue.

    Any help is greatly appreciate, TIA.

    Mike
    Mike

  2. #2
    Member
    Join Date
    Oct 2005
    Location
    Massachusetts
    Posts
    21

    Default Java Environment

    In the java programming environment, it is likely that the system environment variable java.io.tmpdir is set to
    /var/tmp/ <SomeSessionvariable>

    (or some other environment variable)

    since there is a "line number" (line 67) listed, perhaps the java command is actually a shell script.

    a) Verify if /usr/bin/java is a shell script, and post the entry around those lines

    or

    b) See if your java environment variable java.io.tmpdir can be configured to use something like
    $HOME/tmp (where each user has a tmp subdirectory and execute access is allowed)
    Lighting Your Path to Success
    http://www.wefconsulting.net

  3. #3
    Member
    Join Date
    Aug 2003
    Posts
    142

    Default

    The java shell script /usr/bin/java around line 67 shows:

    export CLASSPATH="$clp"
    COMMAND=`mktemp /tmp/javaXXXXXX`
    echo "rm $COMMAND" >$COMMAND
    echo "exec /usr/bin/gij $params" >>$COMMAND
    chmod +x $COMMAND
    exec $COMMAND

    How can this be changed exactly so each user can run java and it uses their own $HOME/temp directory?


    Thanks in advance.
    Last edited by mydomain; 07-11-2007 at 03:44 AM.
    Mike

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    8

    Exclamation

    I have the same problem, can anyone help?
    Why do the Java doesnt work?
    It is configured as stock, I hadnt changed anything and it doesnt works.

  5. #5
    Member
    Join Date
    Feb 2004
    Posts
    8

    Default

    bump, help

Similar Threads & Tags
Similar threads

  1. How to make /tmp noexec?
    By SuperBaby in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-10-2008, 05:03 AM
  2. Remove noexec,nosuid from /tmp partition
    By MarkPW in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 06-17-2007, 05:19 AM
  3. logrotate errors and TMP noexec
    By DavidR in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-20-2006, 06:12 AM
  4. How to execute a file in a noexec tmp/?
    By mikehvvc in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-12-2004, 10:50 PM
  5. noexec /tmp
    By Sash in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-10-2003, 04:35 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube