Checking whether a user has file permissions

From: Chris (anon)
Date: 04/20/05

  • Next message: Barton L. Phillips: "Re: VPN and Fedora server/Win client?"
    Date: Tue, 19 Apr 2005 17:16:20 -0500
    
    

    I'm writing an application that has to know whether a given user is allowed
    to read a given file. The application will be running under a user that has
    root permission. How can I query the operating system to find out what a
    non-root user can see?

    The app is written in Java, but I can interface to native code written in C
    if necessary.


  • Next message: Barton L. Phillips: "Re: VPN and Fedora server/Win client?"

    Relevant Pages

    • TypeLoadException
      ... I have an application that's divided in 5 assemblies, 2 of wich are written in J# (I'm writing an abstraction layer, so I can program in Java for a non dot net compatible device), the rest in very lightweight C#. ... Now, I've written a bit more of code that works perfectly in Javaland, but now I'm getting a TypeLoadException while running the app, and I'm ...
      (microsoft.public.dotnet.framework.compactframework)
    • Re: Is there an easy way to find the right class?
      ... say I'm writing an app and I need a class that will take a database ... Google eclipse and you'll find it. ... IDE for java. ...
      (comp.lang.java.help)
    • Re: Is there an easy way to find the right class?
      ... say I'm writing an app and I need a class that will take a database ... Java is well documented at <http://java.sun.com/j2se/1.5.0/docs/api/ ... Google eclipse and you'll find it. ...
      (comp.lang.java.help)
    • RE: Dealing with marketing types...
      ... get it in writing... ... is the tendency to dump the guythat brought them to the party. ... little pay on the promise that you will be rewarded when/if success comes. ... > having a Java product would make them more attractive. ...
      (comp.lang.python)
    • Re: Display contents of text file in the Browser
      ... It sounds like your app is attempting to read from the file at the same time ... that it is writing to it, ... process and attempting to read the file and display it at the same time. ... memory, and return that string to the client, while launching a separate ...
      (microsoft.public.dotnet.framework.aspnet)