Article Title: common users in Linux cannot directly use crontab. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Problem: One of the Linux servers in use cannot be executed under normal users until the beginning and end of the crontab. The error seteuid: Operation not permitted is always prompted during execution, 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.
Solution: The permission before the change is
-Rwxr-xr-x 1 root 70592 Jul 12 2005/usr/bin/crontab
The modified permission is
-Rwsr-xr-x 1 root 70592 Jul 12 2005/usr/bin/crontab
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
Chmod u + s/usr/bin/crontab