|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-31 22:59 UTC] michael at chunkycow dot com dot au
[2016-06-18 14:58 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: cmb
[2016-06-18 14:58 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 13:00:02 2025 UTC |
Description: ------------ i would like the feature to modify user non-domain, windows accounts directly without having to resort to an exec(); or shell_exec(); command (probably because i cannot get them to work anyway). a standard old password, new password, confirm password setup would be ideal. i have tried exec() and shell_exec with sysinternals psexec.exe and windows' built-in runas.exe with net user commands. i have tried setting safe_mode off but i cannot get it to work. see below for sample Reproduce code: --------------- $pp = popen("runas /noprofile /user:machine_name\\administrator \"net user $username $newpassword\"", 'w'); fwrite($pp, $adminpassword); // and also tried shell_exec("echo $adminpass | runas /noprofile /user:machine_name\\administrator \"net user $username $newpassword\""); // as well as for the sysinternals psexec.exe shell_exec("psexec -u administrator -p $adminpass net user $username $newpassword"); Expected result: ---------------- be able to change local system passwords by web interface without relying on external utilities. Actual result: -------------- not possible