Getting system user info from java app

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laura P

    Getting system user info from java app

    Hi,

    In my application I need to ensure that only people who are logged
    into an account with admin rights can perform certain tasks. I have
    got as far as using System.getPrope rty("user.name" ) to find out who is
    logged in, but cannot find a way to determine what privileges they
    have.

    I realise there may not be a generic way of discovering this.
    Although it would be nice to have this functionality for all
    platforms, my current project requires it only for Windows 2000.

    Does anyone have any pointers on how to discover this information?

    Regards,
    Laura
  • nos

    #2
    Re: Getting system user info from java app


    "Laura P" <patersol@hotma il.com> wrote in message
    news:bf09ed7.04 02260026.28f5fa [email protected] le.com...[color=blue]
    > Hi,
    >
    > In my application I need to ensure that only people who are logged
    > into an account with admin rights can perform certain tasks. I have
    > got as far as using System.getPrope rty("user.name" ) to find out who is
    > logged in, but cannot find a way to determine what privileges they
    > have.
    >
    > I realise there may not be a generic way of discovering this.
    > Although it would be nice to have this functionality for all
    > platforms, my current project requires it only for Windows 2000.
    >
    > Does anyone have any pointers on how to discover this information?
    >
    > Regards,
    > Laura[/color]

    It is my impression that you cannot do anything that you are
    not authorized to do, so why not just make whatever it is
    you want to do be privileged. Then you don't care who it is.


    Comment

    Working...