{"id":3523,"date":"2011-07-27T19:38:41","date_gmt":"2011-07-27T23:38:41","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3523"},"modified":"2025-03-09T14:46:14","modified_gmt":"2025-03-09T18:46:14","slug":"how-to-fix-usr-bin-crontab-permissions-are-wrong-error-in-cpanel","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/how-to-fix-usr-bin-crontab-permissions-are-wrong-error-in-cpanel\/","title":{"rendered":"How to Fix &#8220;\/usr\/bin\/crontab Permissions Are Wrong&#8221; Error in cPanel"},"content":{"rendered":"<h2>Understanding the &#8220;\/usr\/bin\/crontab Permissions Are Wrong&#8221; Error<\/h2>\n<p>When managing scheduled tasks in <strong>cPanel<\/strong>, you may come across the error message:<\/p>\n<blockquote><p>\n<em>\/usr\/bin\/crontab permissions are wrong. Please set to 4755<\/em>\n<\/p><\/blockquote>\n<p>This issue occurs due to incorrect file permissions on the <code>\/usr\/bin\/crontab<\/code> binary, preventing users from executing cron jobs properly. It is common on <strong>RedHat, CentOS, and Fedora<\/strong> servers.<\/p>\n<h2>How to Fix &#8220;\/usr\/bin\/crontab Permissions Are Wrong&#8221; in cPanel<\/h2>\n<p>To resolve this issue, you must correct the file permissions and ensure the necessary cron packages are installed. Follow these steps:<\/p>\n<h3>1. Log Into the Server<\/h3>\n<p>Access your server using SSH or the console as the <strong>root user<\/strong>. You can use an SSH client like PuTTY or run the following command from your terminal:<\/p>\n<pre><code>ssh root@yourserver.com<\/code><\/pre>\n<h3>2. Install the Required Packages<\/h3>\n<p>Make sure <code>vixie-cron<\/code> and <code>crontabs<\/code> are installed. If they are missing, install them using the following command:<\/p>\n<pre><code>yum -y install vixie-cron crontabs<\/code><\/pre>\n<h3>3. Set the Correct Permissions<\/h3>\n<p>After installation, change the permissions of <code>\/usr\/bin\/crontab<\/code> to 4755 by executing:<\/p>\n<pre><code>chmod 4755 \/usr\/bin\/crontab<\/code><\/pre>\n<h3>4. Verify the Changes<\/h3>\n<p>Once the command executes successfully, verify the new permissions using:<\/p>\n<pre><code>ls -l \/usr\/bin\/crontab<\/code><\/pre>\n<p>You should see output similar to this:<\/p>\n<pre><code>-rwsr-xr-x 1 root root 32168 Mar  5 12:34 \/usr\/bin\/crontab<\/code><\/pre>\n<h2>Restart the Cron Service<\/h2>\n<p>For the changes to take effect, restart the cron service:<\/p>\n<pre><code>systemctl restart crond<\/code><\/pre>\n<h2>Final Check: Run a Test Cron Job<\/h2>\n<p>To ensure everything is working, create a test cron job. Use:<\/p>\n<pre><code>crontab -e<\/code><\/pre>\n<p>Add a simple job, like:<\/p>\n<pre><code>* * * * * echo \"Cron job is working\" >> \/root\/cron-test.log<\/code><\/pre>\n<p>Save and exit, then check the log file after a few minutes:<\/p>\n<pre><code>cat \/root\/cron-test.log<\/code><\/pre>\n<p>If you see \u201cCron job is working,\u201d the issue is resolved.<\/p>\n<h2>Need More Help?<\/h2>\n<p>If you still face issues with cron jobs on your <strong>UnderHost<\/strong> server, our support team is available 24\/7. Reach out via <a href=\"https:\/\/customerpanel.ca\/client\" target=\"_blank\">@CustomerPanel<\/a> for expert assistance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Encountering the &#8220;\/usr\/bin\/crontab permissions are wrong. Please set to 4755&#8221; error in cPanel? Follow this simple guide to resolve it on RedHat, CentOS, or Fedora servers.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-3523","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3523"}],"version-history":[{"count":3,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3523\/revisions"}],"predecessor-version":[{"id":5115,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3523\/revisions\/5115"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}