Need to ensure directory permissions stay set to 755. We have a program that stores files in /var/log/rederUI. I need the permissions to stay set on this directory to 755 so that internal service accounts can access world readable files in it. Vendor patches will change the permissions to be more restrictive so each time the server is updated, I have to reset permissions. I'd like to create a cron job to reset them to 755 anytime the restart is done. Though I know how to do this manually, what would be the best way to set it up in cron? Create a simple bash script to set the permissions and have cron run it? Is there a way to have cron only run a script or command at startup?
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.