Author Topic: Change user password via API  (Read 9439 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
Change user password via API
« on: May 30, 2017, 04:48:03 PM »
I want to write API function for change user password.
I see php files are encrypted so I do not know how start with it.
Any help ?

Offline
*
Re: Change user password via API
« Reply #1 on: July 24, 2017, 06:00:07 PM »
I want to write API function for change user password.
I see php files are encrypted so I do not know how start with it.
Any help ?

users password store in /etc/shadow



I think

Offline
***
Re: Change user password via API
« Reply #2 on: July 26, 2017, 05:33:20 AM »
Yep. So you need to get the plain password, to crypt it the same way CentOS do, replace it in /etc/shadow and reload the password db of CentOS(this is by memory from FreeBSD, may be on Linux you don`t need to reload it after changes).
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...