I am currently trying to do a backup of a server and am getting an error message when running my script. The script runs correctly on certain directories, but for the directory I am attempting to use I get the error message "permission denied", even with proper access.
For example, when trying to create the backup in the /var/... directory using my script, it works.
However, if I attempt to run the script in the /opt/app/backup directory I am not able to:
I also have the correct read/write access for the directory, compare /var and /opt:
Any help/suggestions are greatly appreciated.