troubleshooting Question

Need to ensure directory permissions stay set to 755

Avatar of LN41
LN41 asked on
Linux* Bash
1 Comment1 Solution100 ViewsLast Modified:
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?
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros