Hot search terms: 360 Security Guard Office365 360 browser WPS Office iQiyi Huawei Cloud Market Tencent Cloud Store
operating system Storage: 1158720KB Time: 2014-04-22
Software Introduction: Ubuntu is a freely distributed and open source Linux-based operating system designed for humans, humans who have no previous experience with Linux...
The crontab command is mainly used to set instructions to be executed periodically, but sometimes an exception occurs in the crontab, no instructions are automatically executed, and a BAD FILE MODE error message appears. How to solve this situation? This article mainly introduces the solution to the Linux crontab error: BAD FILE MODE. The system environment is RHEL. Friends in need can refer to it.
I encountered a problem recently. After the server went online, crontab encountered exceptions and did not execute automatically. After checking the log, I found the problem:
The code is as follows:
Apr 16 11:26:01 jb51.net crond[28354]: (*system*) BAD FILE MODE (/etc/cron.d/flushhost)
Apr 16 11:26:01 jb51.net crond[28354]: (root) BAD FILE MODE (cron/root)
I checked other files in the /etc/cron.d/ directory and found that the flushhost attribute was 755 and the others were 644, so I changed the script attribute to 644 and the problem was solved.
In addition, the install.sh script of the mysql installation package was also modified. After the new server was installed, the attribute of the flushhost script was modified to 644.
This problem seems to have only been encountered under certain versions of RHEL, not all versions.
The above is the solution to the Linux crontab error BAD FILE MODE summarized by the editor. If your crontab does not execute automatically and the error message appears in the log, you can use this method to solve it.
How to log in to 360 account with 360 speed browser - How to log in to 360 account with 360 speed browser
How to change the skin of 360 Speed Browser - How to change the skin of 360 Speed Browser
How to record the screen of 360 Speed Browser - How to record the screen of 360 Speed Browser
How to shrink the obs window? -obs method to reduce window size
How to use beautification on obs? How to use beautification on obs
What to do if there is no sound after reinstalling the computer system - Driver Wizard Tutorial
How to practice typing with Kingsoft Typing Guide - How to practice typing with Kingsoft Typing Guide
How to upgrade the bootcamp driver? How to upgrade the bootcamp driver
How to change QQ music skin? -QQ music skin change method
Driver President Download-How to solve the problem when downloading driver software is very slow