Need to ensure directory permissions stay set to 755

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?
LVL 1
LN41Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gerwin Jansen, EE MVETopic Advisor Commented:
put the chmod command in your crontab with @reboot in front of it:

@reboot /bin/chmod 755 <your folder>

check that chmod is in /bin and replace <your folder> with the path of your target folder
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.