MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: crontab: error renaming /var/spool/cron/tmp.XXXXkY5ZHV to /var/spool/cron/root  (Read 7233 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
Hello folks,

One of our client was facing below error while editing a crontab.

Quote
root@X [/tmp]# crontab -e
crontab: installing new crontab
crontab: error renaming /var/spool/cron/tmp.XXXXDSGEDV to /var/spool/cron/root
rename: Operation not permitted
crontab: edits left in /tmp/crontab.xO3YcB

After investigating on it, I found that file /var/spool/cron/root has a chattr set.

Quote
#lsattr /var/spool/cron/root
-u--ia-------e- /var/spool/cron/root

To resolve this error, you need to remove this chattr.

Quote
# chattr -aui /var/spool/cron/root

Now try to edit crontab, it should work fine.

Quote
# crontab -e
crontab: installing new crontab

That's all. Enjoy ..!! :) :)




MilesWeb.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.

MilesWeb Hosting Forum