apache (root) + php4
| From: | Michelle Konzack | Date: | Sat, 03 Sep 2005 08:25:44 +0000 |
| Subject: | apache (root) + php4 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-221799@lists.php.net to get a copy of this message | ||
Hello *,
for an half hour I was at a new customer and they run apache 1.3 as
root on am IntranetServer because they need to admin there Fileserver
via php.
Now some problems:
1) They use exec("mcrypt ....") to generate UNIX passwords for
/etc/shadow and I like to know, how I can create suitable md5
passwords for it from php.
2) I like to run apache as www-data and not as root. How I must
setup php/apache that I can do root-stuff because I need to run
exec("useradd -c $WA_COMMENT -d $WA_HOME_DIR \
-e $WA_EXPIRE_DATE -f $WA_INACTIVE_TIME \
-g $WA_INITIAL_GROUP -G $WA_GROUPS \
-m -k $WA_SKELETON_DIR -s $WA_SHELL \
-u $WA_UID -p $WA_PASS_MCRYPT $WA_LOGIN")
Thanks and nice wekend
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)