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 3 within the Stratos Datacenter.
Your task is to grant executable permissions to the /tmp/xfusioncorp.sh script on App Server 3. Additionally, ensure that all users have the capability to execute it.
Start by connecting to App Server 3 via SSH using the banner
account.
ssh banner@stapp03
Once logged in, switch to the root user to modify the script's permissions.
sudo su
Verify the current permissions of the script to understand its current state.
ls -al /tmp/xfusioncorp.sh
Update the permissions of the script so that all users can execute it.
chmod 755 /tmp/xfusioncorp.sh
- Explanation:
chmod 755
: This command sets the permissions of the file torwxr-xr-x
.rwx
(read, write, execute) for the owner (root).r-x
(read, execute) for the group (root).r-x
(read, execute) for others (all users).
Check the permissions again to ensure that they have been updated correctly.
ls -al /tmp/xfusioncorp.sh
Run the script to ensure it works as expected.
. /tmp/xfusioncorp.sh