Re: changing the Linux password
Posted By:
shilpa_ratwani
Posted On:
Monday, July 30, 2001 07:30 AM
Hi,
u can change the password thru java,
have u tried using the following block of code to do the same, it works for me.
Process process=Runtime.getRuntime().exec("passwd");
process.waitFor();
OutputStream proc=process.getOutputStream();
process.destroy();
System.out.println("The output string is "+proc.toString());
proc.close();