Teen Programmers Unite  
 

 

Return to forum top

set password in solaris OS

Posted by gmali [send private reply] at December 12, 2001, 08:50:31 AM

How can i change user password in Sun Solaris OS from a java application???

Can anybody help:: this is an SOS

if anyone can solve, Please mail me :

sroy5960@hotmail.com

Posted by taubz [send private reply] at December 12, 2001, 01:05:46 PM

That's a UNIX right? You'd need to be running as the root user.. you could try calling the program passwd (if that's a SunOS thing too), piping the input to the program, and sending it the new password.

Bear in mind that Java is supposed to be platform independent and your trying to do something very platform independent. So, there's no easy answer to your question.

- taubz

Posted by CodeRed [send private reply] at December 12, 2001, 01:19:48 PM

"Bear in mind that Java is supposed to be platform independent and your trying to do something very platform independent."

You mean:

Bear in mind that Java is supposed to be platform independent and your trying to do something very platform dependent.

Posted by taubz [send private reply] at December 12, 2001, 03:29:52 PM

Thanks. I was rushed when I was typing that. :)

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.