apache (root) + php4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)

Attachment: signature.pgp
Description: Digital signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux