Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

Editing configuration files of Linux-based products

    • Updated:
    • 21 Mar 2019
    • Product/Version:
    • Interscan Web Security Virtual Appliance
    • Smart Protection Server
    • Platform:
    • N/A N/A
Summary
You want to know how to edit configuration files of Linux based products directly on the Linux machine by using the command line.
Details
Public

To modify the configuration files:

  1. Log on to the Linux machine as "root" with a SSH client such as PuTTy.
  2. Back up the configuration file you would like to edit in /var/tmp with the command "cp".

    For example:
    # cp /etc/iscan/intscan.ini /var/tmp

  3. Edit the file with vim:

    1. Open the file in vim with the command "vim".

      For example:
      #vim /etc/iscan/intscan.ini

    2. Type "/" and then the name of the value you would like to edit and press Enter to search for the value in the file.

      Search with "/"

       
      If more than on instance of the search string was found you can use "n" to go to the next instance or "?" to go to the previous one.
    3. Type "i" to enter insert mode.
    4. Modify the value that you would like to change using the arrow keys on your keyboard.

      Modify file in insert mode

    5. Press ESC and then type ":wq!" then press Enter to save the changes and exit vim.

       
      If you would like to exit the file without making any changes press ESC, then type ":q!" and press Enter.

      Save with :wq

If you need to copy the backup intscan.ini, which has been saved in /var/tmp/, do the procedure below. Make sure to perform it during out-of-office hours to minimize any impact to the users.

  1. Rename the original intscan.ini file:

    mv /etc/iscan/intscan.ini /etc/iscan/intscan.ini.bak

  2. Copy to the original location of the backup file in /var/tmp:

    mv /var/tmp/intscan.ini /etc/iscan/intscan.ini

  3. Provide the correct permissions to the file:

    chown iscan:iscan /etc/iscan/intscan.ini
    chmod 664 /etc/iscan/intscan.ini

  4. Restart all the IWSVA daemons:
     
    This will interrupt the network traffic for a few minutes so plan accordingly.

    /etc/iscan/rcIwss restart

Premium
Internal
Rating:
Category:
Configure
Solution Id:
1113864
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.