Common users in Linux cannot use crontab directly.
Source: Internet
Author: User
In Linux, common users cannot directly use crontab. For details, refer to Linux general technology-Linux technology and application information. One of the Linux servers I used previously cannot be executed under normal users until the beginning and end of crontab. the following error is always prompted during execution: seteuid: Operation not permitted, to use crontab, you need to switch to the root user, and then execute crontab-u username-e to edit it. Later, google found that the problem lies in the file permission, file/usr/bin/crontab is not privileged.
Because crontab is used for files other than crontab, and normal users of those files do not have permission to change, they need to increase their privileges on the file system, this allows you to change the permissions of other files. The above method is to switch to the root user before executing
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service