How to restrict rights of executed program

Greetings,
I need to execute JAVA programs (student homework), where there is not guaranteed that one of the submission is some kind of trojan horse, which could potentially e.g. delete some important files on a machine, which executes the code.
Is there any simple way how to restrict rights of executed program?
Or how does e.g. tomcat hosting provider guarantee the security?
Thanks in advance.
Edited by: radone on Jun 29, 2008 10:59 PM

Nice example describing using a policy management is here:
[Managing Policy Files|http://exampledepot.com/egs/java.security/UsePolicy.html]
Edited by: radone on Jun 30, 2008 1:50 AM

Similar Messages

  • How Can I do an executable program in Labview?

    I have Ver. 6.1 of Labview, Ver. 6.0 of IIMAQ Vision Builder and PCI1409, I have my aplication ready too. But I want ti create av executable aplication.
    I wanto to Know If is necesary to have a special version of LabView or to have another software, and Where can I find an examples about it.
    I will hope your answer.

    To create an executable with LabVIEW 6.1 you need the application builder add-on. This comes with some versions of LabVIEW (e.g. Professional) and not others (e.g. Base or Full). To find out if it's included with yours go to the "Tools" menu on the front panel and look for the "Build Application or Shared Library (DLL)" option. If you don't have it you can probably purchase it seperately.
    Also you need to have the LabVIEW 6.1 runtime engine installed on the target computer you intend to run the executable on.
    Hope this helps,
    Neil

  • How to create executable programs

    How can I create an executable program using J2SDK 1.2.2?
    Thank you

    There are some programs that can do what you are looking for but most of them just include the JRE in the project and make a small wrapper .exe that calls it.
    I agree with MarcinSc - you should make your friends install the JRE even for their own good.

  • How to restrict user at selection screen while executing in background mode

    hi all,
    how to restrict user at selection screen while executing in background mode
    Regards
    Deepak

    Hi,
    We can get the Program whether this is running in background or not then we need to use SY-BATCH, if the SY-BATCH is set to X then the program is running in Background,
    so in the INITIALIZATION event, you can use this SY-BATCH and check the User names, and give the error messsage which you want to restrict
    Regards
    Sudheer

  • How to keep administrative rights to our program

    Hi experts,
         I want to know how to have administrative right to my program so that only i can make changes to program,Not the enduser.
    The other question is :
    how display logo/picture in my program.Can any one give the code for this question? 
    thanks & regards,
    Prasanth

    Hi,
    Below are the steps to follow for displaying logog.
    1.In transaction OAER, give class name as 'PICTURES' and clas type 'OT'.
    2. Enter the object key as the name of the logo you wish to give and execute
    3. Then in the new screen select Standard doc. types in bottom window
    Click on the Screen icon
    Now, it will ask for the file path where you have to upload the logo
    7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE
    call function 'REUSE_ALV_COMMENTARY_WRITE'
    exporting
    it_list_commentary = i_header
    i_logo = Ur logo .

  • How can I use a Java program to write an executable Applescript

    I'm using a PC with Windows XP. I'm a private developer. I've written a project in Java and wish to deploy it to other people using email. I've written an Install program (the Main-Class) and successfully packed this in a jar file with the project class files and some data files all as described in the deployment trail in the Java Tutorials. A recipient with a Mac with OS X downloads the jar file and runs it to install the project class files and some data files. The install program then writes an Applescript file (Vocab.scpt shown below) on the Desktop to make starting my downloaded program easier but it doesn't seem to work and I think it may be because the script file is not "executable". Could this be the case? If so, how could I change my install program to make the script file executable or alternatively use some other system to start the downloaded program?
    Vocab.scpt:-
    # Script to start: Vocab Version: 1.0.0
    do shell script "cd /Applications/Vocab; Java Vocab"
    Many thanks for your interest. Unfortunately I don't have a Mac to experiment with this problem and although I have spent some days on and off trying to find an answer in the mass of information available on Apple's website I can only find small clues here and there to answer my problem (which I would have thought was quite a common one). In Windows a batch file (eg. Vocab.bat) is automatically executable.

    I didn't expect you to have your customer run the command. I would expect you to create the executable and install it. However, there wouldn't be any difference in what you are creating and the .jar file. Either way it is a faceless icon. For that matter, it is no different than a batch file on Windows. I'm not sure what they wouldn't understand with, "copy the Vocab.jar file to wherever you want and double-click it to run the program." In addition, you probably ought to point out that Java is not installed on Mac OS X Lion (10.7.x) and when they double-click the jar file (or whatever you send them), the system will ask if they want to install Java.
    What you really need to do is package up the app inside a Mac application package and provide the user with the application on a .dmg (disk image). Take a look here: http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Jar_Bundle r/Introduction/Introduction.html#//apple_ref/doc/uid/TP40000884
    I also found this which uses ANT to create the bundle: http://informagen.com/JarBundler/

  • Does any one know how to execute program in Jump developer desktop

    hi,
    Does any one know how to execute program in Jump developer desktop,
    actually i copied the hello world project from my eclipse workspace to jump
    developers workspace and once i run the program it asks for the main class
    and then i gave main class as my HelloWorld Class,it generates error as
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    Can any one help me to come out of this problem.....
    Thanks
    MRaj

    i solved it,
    thanks
    MRaj

  • How can i run a executable right after a rman job has run?

    How can i run a executable right after a rman job has run?
    I have a rman job that execute every night. The backup is local.
    I want to have a duplicate of the backup on another machine.
    I want the executable to sync the directory to execute right after the rman backup.
    How can i do this using the job scheduler?
    Normaly, i would configure rman to run the backup on both location. But im having trouble with rman regarding this:ORA-600 [2103] on RMAN Backup to NFS mounted file system

    Hi,
    If the rman job is in fact a Scheduler jobs (appears in the dba_scheduler_jobs view) then you can create a second event-based job that runs after the rman job (and set the raise_events attribute for the rman job).
    Instructions are here
    Create Event based job
    Hope this helps,
    Ravi.

  • How to Add New Parameter in Cluster with LabVIEW Executable Program?

        In this VI,it can write the parameter in Cluster to the database (Access 2003).it run well.
        But When I add another parameter in Cluster,such as EE,I have to modify this Cluster. And at the same time,I have to modiy the database (I should add a column of EE).if this vi build to exe, how can I achieve it?Can LabVIEW have any way to increase new parameter EE in Cluster and in Database in executable program?
        Would you give me some advice?Thank you
    Attachments:
    Add ParaMeter In Cluster 20130206.zip ‏105 KB
    Cluster.JPG ‏9 KB

    It's rather unclear what you try to do here. In your first post you talk IMHO about the high level Datatbase Toolkit functions that take a cluster and translate it automagically into the appropriate SQL Query/Update.
    Your second question seems to be about the user interface of your application.
    Proper application design would mean to separate the user interface aspect from the actual database query in some ways. I definitely wouldn't use the same cluster for both. Also if you simply hide a control on the frontpanel (possible also in an executable) it still is present logically and if you end up using the high level database toolkit functions with that cluster it will result into a query or update of the database with all the data in the cluster, also the hidden ones.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to restrict simultaneous execution of two programs?

    Hi Experts,
    Need inputs for the situation described below:
    We have two programs prog A and prog B. These are independent executable programs and have no dependency on each other. I want to restrict execution of prog B if prog A is running in any session by any user. Is there any system/basis table which stores runtime status of all the programs? There should be some table where all the currently executing programs get stored and once program is completed, entry is cleared from the table.
    One way can be:
    When prog A has started execution, add an entry in any Z table and at the time of finishing delete the particular entry. In prog B check that the table has any entry for prog A. If yes that means prog A is still running.
    Issue with this approach is, if program A has some error or cancelled while execution, it will not delete its own entry and hence even if prog A is finished, prog B will find entry in Ztable. 
    Any other way to achieve this functionality?
    This is very urgent.Please help!
    TIA
    Abhishek

    Hi,
    Although I don't understand why you need to serialized two programs
    that have no dependency on each other, maybe the following code can help provided the programs are executed using specific tcodes.
      DATA: BEGIN OF USR_TABL OCCURS 10.
              INCLUDE STRUCTURE UINFO.
      DATA: END OF USR_TABL.
    CONSTANTS: OPCODE_LIST LIKE TH_OPCODE VALUE 2.
      refresh USR_TABL.
      CALL 'ThUsrInfo' ID 'OPCODE' field OPCODE_LIST
        ID 'TAB' FIELD USR_TABL-SYS.
      sort usr_tabl by mandt bname.
    You can check wheter the other program(tcode) is being run from itab USR_TABL, good luck.
    Jeffrey Satriadi

  • How to execute program in remote server?

    In my code I am executing a program that resides on another
    server. But when I execute the program the server where the code is
    resided runs the program and sucks up CPU.
    How can I make it execute the program in the remote server? I
    don't want it to just fetch the exe and run it locally. I want it
    to execute the program IN the remote server, using ITS resources.
    The remote server is a network share, \\server2 for example.
    Any thoughts?

    You should be able to use <cfexecute...> to do this,
    you will have to
    make sure all the connections and permissions are set up.
    Just remember that by default, at least on windows systems,
    CF is
    configured to only have access and permissions to the local
    system, you
    will need to modify this if it has not been done.

  • How to start an executable program from a java program ?

    Hi,
    does someone know how to start an executable program from a JAVA program ?
    Thanks, Fred.

    Take a look at the Runtime class.
    -S-

  • How to execute programs on different hosts/ severs?

    HI all,
    In my SAP 4.6C system, two instances are running.
    I would like to execute programA on instance1 and programB on instance2.
    How could this be achieved?
    thanks in advance,
    holger

    @Srinivas:
    You can execute these two programs online. See how:
    - Write a RFC FM that executes an given report
    - Call this FM by coding
    CALL FUNCTION 'FUNCTION1'
      DESTINATION dest
    - this FM again calls another RFC FM:
    CALL FUNCTION 'FUNCTION2'
      STARTING NEW TASK task
    taking this way, both jobs will run 'online' (in dialog process).

  • How to link from query to executable program (38)

    Hi Experts,
    I develop one sq01 query and that I want link to my executable program which is created by from se38 to display the interactive report .
    The basic list is coming from the  query and secondary list is displaying from the program.
    please explain how to link the query and program to store the values TRSTI table.
    Please help me,its critical

    Kindly search on the net with the keyword "Report assignment in SAP Query", you will get lot of links.

  • How to find the last executed date of any program?

    <<Frequently asked questions. So search>>
    How to find the last executed date of any program?
    is there any system variable or function module?
    Edited by: Matt on Oct 5, 2010 12:48 PM

    check the transaction STAD.
    Prabhudas

Maybe you are looking for