There are new requirements to automate a backup process that was performed manually by the
xFusionCorp Industriessystem admins team earlier. To automate this task, the team has developed a new bash script
xfusioncorp.sh. They have already copied the script on all required servers, however they did not make it executable on one the app server i.e
App Server 3in
Please give executable permissions to
App Server 3. Also make sure every user can execute it.
We have access to credentials servers from the infrastructure details:
- Starting from a jump_host we ssh into App Server 3 as the user banner:
/tmp directory we can view the current permissions and ownership of the
/tmp/xfusioncorp.sh file. We can see that it belongs to
root user and it has not been made executable:
xfusioncorp.shexecutable for all everyone (users, groups, other):
xfusioncorp.shreadable. A script can't be executed if it can't be read - at least for Bourne (again) shells I believe? Let's give
readaccess to everyone and see the contents of the script.
- Execute the script:
- Does a script file need to be readable? I guess all the script files I have ever written or run have always had
readpermissions set. I guess since a script is a text file it would require this permission, while binary files would not.
Did you find this article valuable?
Support Charles Drani by becoming a sponsor. Any amount is appreciated!