4/100 Script Execution Permissions

In a bid to automate backup processes, the xFusionCorp Industries sysadmin team has developed a new bash script named xfusioncorp.sh. While the script has been distributed to all necessary servers, it lacks executable permissions on App Server 1 within the Stratos Datacenter.

Task:
Grant executable permissions to the /tmp/xfusioncorp.sh script on App Server 1. Additionally, ensure that all users have the capability to execute it.

ssh tony@172.16.238.10

ls -lah /tmp/xfusioncorp.sh
---------- 1 root root 40 Sep  1 12:55 /tmp/xfusioncorp.sh

sudo chmod a+rx /tmp/xfusioncorp.sh
-r-xr-xr-x 1 root root 40 Sep  1 12:55 /tmp/xfusioncorp.sh

chmod a+rx /tmp/xfusioncorp.sh means:

a → all (owner, group, others)
+r → add read
+x → add execute

This is effectively the same as using chmod 755, except it doesn’t touch write permissions.  Using chmod a+rx ensures everyone can read and execute, however it leaves the owners existing write permissions as is.