#31156 [NEW]: Exec function only works when logged in

From: Date: Fri, 17 Dec 2004 16:47:37 +0000
Subject: #31156 [NEW]: Exec function only works when logged in
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70523@lists.php.net to get a copy of this message
From:             webmaster at adamscs dot com
Operating system: Windows Server 2003
PHP version:      5.0.3
PHP Bug Type:     Unknown/Other Function
Bug description:  Exec function only works when logged in

Description:
------------
I am using Windows Server 2003 running IIS 6 with PHP 5.0.3.3 CGI.  I am
coding a program that require the exec of the "dsmod" command.  The
command will only work when the user that it is being exec as is logged
in.

Reproduce code:
---------------
<?php
exec ('dsmod user "'.$username.'" -pwd .$password, $dsmod);
echo ($dsmod[0]);
?>

Expected result:
----------------
exec() to work

Actual result:
--------------
exec() only works when the user that is logged into the webpage is also
logged into the computer

-- 
Edit bug report at http://bugs.php.net/?id=31156&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31156&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31156&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31156&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31156&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31156&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31156&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31156&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31156&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31156&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31156&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=31156&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=31156&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31156&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31156&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31156&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31156&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31156&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31156&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31156&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31156&r=mysqlcfg


Thread (5 messages)

« previous php.bugs (#70523) next »