Disable and Enable Ghostscript

How to Disable and Enable Ghostscript

GPL Ghostscript is a tool used for processing PostScript and PDF files. Disable and Enable Ghostscript However, Sometimes we need to disable it. temporarily, such as for maintenance or security purposes. This guide provides a step-by-step action plan to disable and re-enable (Rollback Plan) Ghostscript on your system.

Disable and Enable Ghostscript Objective:

  • Disable Ghost script.
  • Enable Ghost script (Rollback Plan).

Prerequisites:

  • Root Access.
  • Basic Linux Knowledge.
  • Access the UNIX-based system eg LINUX.

Note :

  • A backup is a copy of important data stored separately from the original.
  • Test these steps on non-production servers first to ensure they work correctly.

Current Status :

Before starting check the current status of the Ghostscript.

gs -version

Before starting check the current status of the ghostscript

Action Plan to Disable Ghost Script:

Step 1:

Open the terminal and connect to the root user.

sudo su -

Step 2 :

Change the permissions to disable Execution using the below command.

chmod -x /usr/bin/gs

Change the permissions to disable

Step 3:

Rename the Executable to indicate it has been disabled.

mv /usr/bin/gs /usr/bin/gs.disabled

Rename the Executable to indicate it has been disabled

Step 4:

Verifying the status of Ghost script it is disabled or not.

gs -version

or

which gs

Verifying the status of Ghost script it is disabled or not

Action Plan Enable Ghost Script  : (Rollback Plan)

Step 1:

Open the terminal and connect to the root user.

Step 2:

Rename the Executable to indicate it has been enabled. 

mv /usr/bin/gs.disabled /usr/bin/gs

 

Step 3 :

Change the permissions to enable Execution using the below command.

chmod +x /usr/bin/gs

Step 4:

Verifying the status of Ghost script it is enabled or not.

gs -version

or

which gs
 

Verifying the status of Ghost script it is enabled or not

Now we have successfully Disable and Enable Ghostscript

Thank You

Leave a Comment