amazon-ec2 - Add crontab job EC2 instance Operation not permitted
问题描述
I'm trying to add new job to crontab using crontab -e
with root user on linux ec2 instance. However I'm getting Operation not permitted while I'm trying to save my changes. And I got same error while I'm trying to add job using any other user.
Moreover I can find in /var/spool/cron/crontabs
root user but I cannot find another user. Also the result of ls -l
for /var/spool/cron/crontabs is -rw-r--r-- 1 root root 112 Apr 7 03:21 root
How can I add the new job without getting operation not permitted error?
解决方案
推荐阅读
- javascript - Vue 3 组合 API - 数组的 ref() 与 reactive()
- c++ - 动态分配指向对象的指针数组
- firebase - 使用自定义域的功能进行托管重写不起作用
- java - 骆驼路线未得到识别,在运行应用程序时,启动了 0 条路线中的 0 条
- tensorflow - 为什么 keras 中的 accuracy 和 binary_accuracy 有相同的结果?
- node.js - 当站点项目文件上传到服务器时,如果项目的节点模块通常添加到.gitignore,它们如何仍然工作?
- c++ - 基于策略的设计 - 有条件地使用基类(函数)
- javascript - 获取包含所有对象特定值的数组
- kotlin - 这个 distinctBy 方法有什么作用?
- devise - “注册”不适用于带有 Devise gem 的 Ruby on Rails 6 应用程序的移动设备