Restricting directory access of a Process created using System.exec(..)

Discussion in 'Java' started by ajay.todimala@gmail.com, Dec 21, 2004.

  1. Guest

    Folks,

    I am writing a Java application to execute a program (C++/Java) by
    using System.exec method.

    Is it possible to restrict the process (that is created using
    System.exec(...) method) that is executing
    the program to grant access permissions (like read, write, execute, )
    to only a particular directory
    and revoke all access permissions to all other directories and files.

    Please let me know if it is possible. If so how?
    Thanks in advance,
    Ajay.
    , Dec 21, 2004
    #1
    1. Advertising

  2. On 21 Dec 2004 10:21:44 -0800, wrote:
    > I am writing a Java application to execute a program (C++/Java) by
    > using System.exec method.
    >
    > Is it possible to restrict the process (that is created using
    > System.exec(...) method) that is executing the program to grant
    > access permissions (like read, write, execute, ) to only a
    > particular directory and revoke all access permissions to all other
    > directories and files.
    >
    > Please let me know if it is possible. If so how?


    Your question really has nothing to do with Java, and everything to do
    with the operating system you use (which you neglected to specify).

    Assuming a Unix-like system, you can do it with chroot, although you
    might need to be root.

    /gordon

    --
    [ do not email me copies of your followups ]
    g o r d o n + n e w s @ b a l d e r 1 3 . s e
    Gordon Beaton, Dec 21, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Arndt Jonasson
    Replies:
    2
    Views:
    404
    Arndt Jonasson
    Feb 12, 2007
  2. Nathan Sokalski
    Replies:
    2
    Views:
    1,129
  3. Guillermo Riojas
    Replies:
    0
    Views:
    170
    Guillermo Riojas
    Nov 26, 2010
  4. Random Task
    Replies:
    12
    Views:
    646
    Joe Smith
    Dec 4, 2005
  5. Aryeh M. Friedman
    Replies:
    1
    Views:
    189
    Aryeh M. Friedman
    Jul 5, 2013
Loading...

Share This Page