-3

Similar to this question, I would like to alter a user's crontab file as root. I'm able to view the crons, but unable to alter or edit them. To view them, I use the following:

sudo crontab -l -u <user>
  • If you have root you could always sudo su <user> and use cron normally. – Centimane Sep 21 '16 at 13:17
2

To alter a user's crontab with root privileges, run the following command:

sudo crontab -u <user> -e
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.