By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,041 Members | 1,858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,041 IT Pros & Developers. It's quick & easy.

Getting system user info from java app

P: n/a
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.getProperty("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
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
nos

"Laura P" <pa******@hotmail.com> wrote in message
news:bf*************************@posting.google.co m...
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.getProperty("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


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.
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.