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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vinod_bujji
Forum Newbie
Posts: 3
Joined: Tue Jun 03, 2003 4:52 am
Location: hyderabad

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

Post 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
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

i think...asume...and hope that is not possible...no matter what your login is.
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

Let your program connect on the telnet port, logon with root....
And just change the pass....

You'll need fsockopen for it.
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

nozy question: Why would you want to do it with php?
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

To make it's computer easy'r to hack...
Post Reply