How to determine root or admin authority
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Richard_Lets
Posted On:   Friday, April 6, 2001 10:12 AM

I have a Java program that runs some commands on
the underlying OS that require root authority on
Unix and admin authority on Windows. It would be
nice for this program to make sure its user has the
needed authority before running the commands. Is
there a way to determine this from Java? On Unix,
maybe it's good enought to check the user.name
Java property to make sure it's root but on
Windows, I think it's not enough to see if it's
Administrator because I'm told that other user ids
can be given full admin authority.

About | Sitemap | Contact