• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java solaris su logon

 
Ranch Hand
Posts: 41
MySQL Database Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic