Find the answer to your Linux question:
Results 1 to 2 of 2
hi i want to execute this command throgh php service iptables restart can you give me steps to do this? i means that steps to edit sudo.what i should type? ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    38

    iptables restart


    hi
    i want to execute this command throgh php
    service iptables restart
    can you give me steps to do this?
    i means that steps to edit sudo.what i should type?
    please help me because i try any solution that i find in this forum but i faild.

  2. #2
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Hi, shyma!

    You should just be able to input that same command in the terminal, but you'll need root privileges to do so. Execute
    Code:
    su -
    service iptables restart
    Done!

    As far as editing your sudo file, this thread may be of some help.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •