1

I have a fc19 host at work.
This morning crontab did not work.

$ ls -l /usr/bin/crontab
----------. 1 root root 53472 Jun 11  2013 /usr/bin/crontab

The permissions -------- means no one has access and can't change rights or rename etc.

To have access to this should the permission be changed to rwxr-xr-x?
What can do ?

3
  • As the root user you will need to use the chmod command to change it to -rwsr-xr-x. 1 root root 53472 Jun 11 2013 /usr/bin/crontab Notice the rws This is the setuid (set user id) bit. Commented Oct 23, 2014 at 9:59
  • 2
    Beyond fixing the symptom, you should investigate why the permissions were changed. Also, note that the file has an SELinux context, which may or may not be correct. Commented Oct 24, 2014 at 15:57
  • i dont have any idea what is reason to change the file but now i can't edit, remove, delete, rename, or do anything as root Commented Oct 25, 2014 at 16:52

1 Answer 1

2

Correct right to /usr/bin/crontab are -rwsr-xr-x. So use chmod 4755 /usr/bin/crontab to set them.

3
  • chmod 4755 /usr/bin/crontab after that chmod: changing permissions of â/usr/bin/crontabâ: Operation not permitted Commented Oct 23, 2014 at 10:44
  • 1
    You need to run that command as root user. Commented Oct 23, 2014 at 10:46
  • What about the SELinux context? Commented Oct 24, 2014 at 15:57

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.