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

Check for admin privilege

P: n/a
Is there any way I can find out whether the current user has
administrator privileges through Java?

Thanks in advance

Sasi
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Sasi" <kv****@hotmail.com> wrote in message
news:85**************************@posting.google.c om...

Is there any way I can find out whether the current user has
administrator privileges through Java?


This task is OS-specific. Either:

* A JNI routine is available that makes the relevant OS call
to obtain this data. The relevant library would, of course,
need to already be installed

or:

* The relevant OS command-line utility could be called
through 'Runtime.exec'

The latter option may be worth exploring. Talk to your system administrator
and ask about any such utilities.

I hope this helps.

Anthony Borla
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.