Page 1 of 1

How can i change the password of linux user locally from php

Posted: Tue Jun 03, 2003 4:52 am
by vinod_bujji
hi
I want to change the password of the linux/unix user. For e.g In my linux system the user name is "vinod" and the password is "vinod12". Please can anyone give me the solution to change the password of the linux user from PHP code. I want to change it through programatically using PHP . If anyone can help me or give me the solution i will be very thankful to u friends
with regards
vinod

Posted: Tue Jun 03, 2003 6:29 am
by redhair
i think...asume...and hope that is not possible...no matter what your login is.

Posted: Tue Jun 03, 2003 6:31 am
by []InTeR[]
Let your program connect on the telnet port, logon with root....
And just change the pass....

You'll need fsockopen for it.

Posted: Tue Jun 03, 2003 6:36 am
by redhair
nozy question: Why would you want to do it with php?

Posted: Tue Jun 03, 2003 6:41 am
by []InTeR[]
To make it's computer easy'r to hack...