473,586 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Check for admin privilege

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
1 2894

"Sasi" <kv****@hotmail .com> wrote in message
news:85******** *************** ***@posting.goo gle.com...

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
20969
by: Ping | last post by:
Hello, Have a wonderful new year! I have oracle 9.2 on XP. There is a table T1 created by user U1 in U1's schema, a synonym S1 created also by U1 to point to T1 in U1's schema, U1 granted S1 to public for select.
0
2097
by: Chris Callahan | last post by:
Greetings: Long time reader, first time poster. Here we go: ==Specific question: Does there exist in MySQL a privilege configuration which will allow an account to issue `SHOW MASTER STATUS` and `SHOW SLAVE STATUS`, but will disallow the running of any other commands (such as `KILL`)?
0
1660
by: Fei Peng | last post by:
>Description: High Resolution Science Imaging experiment(HiRISE) project for one of important instrument on MRO spacecraft which will be launched to MAR in 2005 are using MySQL server 4.0.13 as database management system. we recently encounter a unstable privilege problem.what we do like that: (1) In 8/19, we insert two entry in mysql...
11
20521
by: AnhTai | last post by:
Hi all, I've just installed MySQL 5.0 on my sun box (runing Solaris 10, install from blastwave). This is my first time with MySQL so I don't have any exp with it. I have some troubles as: - I set password for root account via this command: # mysql -h atlantis -u root mysql
7
9747
by: Parv | last post by:
I am impersoanting a user to an other domain. But while doing so i am getting A required privilege is not held by the client exception. I have tried with aal possible usernames and passwords but didn't get success. I am getting same error if i am enetring blank user and password. What i am doing wrong ?
4
1792
by: Daniel | last post by:
Can someone please describe why impersonation requires the impersonator to be local admin?
3
3031
by: dianedebuda | last post by:
Using only Access 97. Need to run as admin in order to use Tool /Compact, etc. Tried Allen Browne's suggestion about registry hack meant for multiple versions of Access, but doesn't seem to work for "version 8.". (Still get Error 75: Path/File access error) Users have been using desktop icons pointing to specific .mdb. Although "Run as...
0
1450
by: Rahul Babbar | last post by:
Hi, I have two users, both of which are part of db2grp1, which is the admin user. db2grp1 has atleast 2 users, user1 and user2. I create a table in user2, name it table2. When i try to delete the contents of that table through user1, it does delete. I tried various ways like "Revoke Delete on user2.table2 from user1"
10
3746
by: aniltc | last post by:
I have a list of users(signed for a newsletter).I'm retrieving the list from a database when the admin clicks on a button. There are maximum 10 users diplayed per page.For example,if I had 30 users in the database,I would have 3 pages of users(Page 1,2,3); For each listed user ,I have a checkbox on the right side.The checkbox is for when the...
2
2142
by: Rituparna | last post by:
What are the difference between windows local admin and a domain admin... Are all the users from a admin group have the same privilege as the admin Thanks...
0
7912
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8202
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3837
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.