• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java solaris su logon  RSS feed

 
Matthew Tilic
Ranch Hand
Posts: 41
Chrome Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

Basically I have a feature I want to run and the user must enter the admin password run the feature (in this case will wipe clean a database). Now I can hardcode the password, however the password may change and I don't want the user to have to remember lots of password.

The password must be the same as if the superuser login on a Solaris machine.

So basically I want to know if their is a anything in the java 6 libary that will do this without needing to get a new libary. I guess I can run a commandline call and if the password is correct then continue, however, I wanted something a bit more secure.

Thanks in advance

 
John Vorwald
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems that you have two goals, one is to determine if a user/password is authentic on the local system, and the second is to determine if the user is a super user of the system.

You may be able to do this using JavaTM Authentication and Authorization Service (JAAS), see http://docs.oracle.com/javase/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!