Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

/var/log directory is being changed permission to 750 randomly

avatar
Expert Contributor

hello cloudera community,

 

could you help us with a problem regarding the /var/log directory

 

at certain times (we couldn't identify the right moment) the /var/log directory is changing the permissions to 750 and with that the CDH 6.3.x cluster services is failing because it can't write the logs.

 

Have you ever had a problem like this? did you manage to solve it?

 

we had to leave a crontab running every 5 minutes to always change it to 755.

 

ps: selinux is disabled
ps: firewall is disabled

1 ACCEPTED SOLUTION

avatar
Master Collaborator

Firstly, it is essential to determine the cause of the permissions change. Some possible factors could be a misconfigured script or process running on the server, a security setting, or interaction with other components of your system.

To troubleshoot this issue, you could start by checking your system logs (/var/log/syslog or similar) and any relevant application logs for any hints about what is causing the permissions change. Additionally, you may want to review any configuration files or scripts that might be involved in managing the permissions of the /var/log directory.

Since you mentioned that SELinux is disabled and the firewall is also disabled, it is less likely that these factors are causing the problem. However, I would recommend double-checking any remaining security settings or access control policies that could potentially impact the /var/log directory.

As a temporary workaround, you mentioned using a crontab that changes the permissions of the directory to 755 every 5 minutes. While this may alleviate the issue temporarily, it is not a sustainable solution in the long run. Instead, it would be more ideal to identify and address the root cause of the permissions change.

If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.

View solution in original post

1 REPLY 1

avatar
Master Collaborator

Firstly, it is essential to determine the cause of the permissions change. Some possible factors could be a misconfigured script or process running on the server, a security setting, or interaction with other components of your system.

To troubleshoot this issue, you could start by checking your system logs (/var/log/syslog or similar) and any relevant application logs for any hints about what is causing the permissions change. Additionally, you may want to review any configuration files or scripts that might be involved in managing the permissions of the /var/log directory.

Since you mentioned that SELinux is disabled and the firewall is also disabled, it is less likely that these factors are causing the problem. However, I would recommend double-checking any remaining security settings or access control policies that could potentially impact the /var/log directory.

As a temporary workaround, you mentioned using a crontab that changes the permissions of the directory to 755 every 5 minutes. While this may alleviate the issue temporarily, it is not a sustainable solution in the long run. Instead, it would be more ideal to identify and address the root cause of the permissions change.

If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.