Re: PHP writing to /etc

From: CountScubula (me_at_scantek.hotmail.com)
Date: 02/10/04

  • Next message: CountScubula: "Re: Decoding/reading data from a binary file into (an) array(s)"
    Date: Tue, 10 Feb 2004 08:10:01 GMT
    
    

    chmod 777

    --
    Mike Bradley
    http://www.gzentools.com  -- free online php tools
    "Peter Simpson" <peter@tiverton.demon.co.uk> wrote in message
    news:c08t2v$ao3$1$830fa17d@news.demon.co.uk...
    > Hello everybody.
    >
    > I'm trying to set up a simple web interface to maintain the rules
    > configuration for Shorewall.
    >
    > This entails writing to at least one of several root-owned files in
    > /etc/shorewall.
    >
    > Can anyone, please explain how I allow a script to write to one of these
    > files when apache is running as www-run.nobody (on debian stable) ?
    >
    > I appreciate that it's probably about permissions, but I should like to
    > be able to minimise the risk of abuse because it is for a charity that I
    > work for.
    >
    > Apache is set up to be visible internally only and I shall ensure that
    > no-one can make it visible via the interface!!
    >
    > Thank you for any help that anyone can give.
    >
    > Regards,
    > Pete
    

  • Next message: CountScubula: "Re: Decoding/reading data from a binary file into (an) array(s)"

    Relevant Pages

    • PHP writing to /etc
      ... I'm trying to set up a simple web interface to maintain the rules ... This entails writing to at least one of several root-owned files in ... files when apache is running as www-run.nobody? ...
      (comp.lang.php)
    • Re: Mailman with Apache 2 on Sarge
      ... With your help I was able to sort out my Apache problems. ... I've set it up with Postfix using directions in ... I can't get the web interface to ... To UNSUBSCRIBE, email to debian-user-REQU...@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Apache and home directories (file browser).
      ... > Their going to be logging in via a web interface. ... can not access another vhosts files. ... some questions on IRC and somebody mentioned that Apache can be chrooted ... chroot -- can anybody confirm this for me? ...
      (freebsd-isp)
    • Creating users from the web
      ... i want to build a system to create users from a web interface. ... I tried to use the su_exec function of apache but it doesn't support ... run programs "as root" or execute setuid programs. ...
      (FreeBSD-Security)