externes programm aufrufen

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • externes programm aufrufen

    hallo,
    ich würde gern eine programm mit php ausführen.
    passthru("ls -l");
    exec ("ps aux");
    u.s.w gehen alle.
    wenn ich aber
    exec ("/sbin/iptables -I INPUT .......");
    also eine neue regel zur firewall hinzufügen möchte geht es nicht.

    hat da einer eine idee?
    danke schon mal.

  • #2
    tja. du hast keine rootrechte....
    INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


    Comment


    • #3
      doch.
      jeder darf das programm iptables ausführen.
      habe ich mal so geändert.

      Comment


      • #4
        aha. wo hast du das wie geändert?

        hast du es auch mal auf der shell ausprobiert, dass es klappt?
        INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


        Comment


        • #5
          ich habe das programm /sbin/iptables auf -rwxrwxrwx
          gesetzt.

          Comment


          • #6
            na und? das bringt überhaupt nichts.

            sudo ist hier die lösung.
            INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


            Comment


            • #7
              danke schon mal werde es mit sudo mal probieren.

              Comment

              Working...
              X