VMware vSphere

 View Only
  • 1.  edit crontab help error

    Posted Jul 08, 2022 07:19 AM

    Hi! I'm trying to edit the file /var/spool/cron/crontabs/root with vim editor but i have this error : /var/spool/cron/crontabs/root Operation not permitted. Before i wrote this post to request your help i have read too many articles but i don't have find the solution yet. Finally i before this error caused i run this command chmod 0700 /var/spool/cron/crontabs/root before that the error was this file is olny readable.

     

    Thank you very much!



  • 2.  RE: edit crontab help error

    Posted Jul 08, 2022 05:47 PM

    If you are using ESXi 7 there are security enhancement which blocked the editing to certain files. The following article list a way that you still might be able to edit the crontab.

     

    https://serverfault.com/questions/1042591/esxi-7-x-file-permissions-how-to-buypass-new-security-measures

     



  • 3.  RE: edit crontab help error

    Posted Jul 08, 2022 06:04 PM

    Hi! i.m sorry! I forgot to mension this. My ESXI Version is 6.5. Thank you



  • 4.  RE: edit crontab help error
    Best Answer

    Posted Jul 09, 2022 01:25 PM

    Have you tried to force save the changes using :wq! as suggested at the bottom of the following article: https://communities.vmware.com/t5/ESXi-Discussions/crontab-problem-with-root/td-p/2598412



  • 5.  RE: edit crontab help error

    Posted Jul 09, 2022 01:29 PM

    Yes! I have also tried this but unfortunately the error is the same