Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a user on my linux server who has sudo. I want to edit the crontab of another user. I'm new to this though and don't understand what the man pages are telling me yet.

Man crontab tells me I can use this format for the crontab command:

crontab [ -u user ] { -l | -r [ -i ] | -e }

But what does that mean? I want to edit the crontab of a user named jake

so I tried

crontab jake -e
crontab [jake] -e
crontab [-u jake] -e

And I get the same error every time: "usage error: no arguments permitted after this option"

So what do I type in to edit jake's crontab?

share|improve this question
The [ -u user ] means that you can optionally say -u user. I would've expected to see user either in italics (when typeset) or as <user> to indicate that it's not the literal string "user" you need to give, – Vatine Sep 29 '10 at 9:35

Try "crontab -e -u jake" ; you will need to be root for this to work.

share|improve this answer
sudo crontab -e -u jake would work without being root, and gets logged. Could also su jake and then do crontab -e but sudo much better. – dunxd Sep 29 '10 at 10:23

you need sudo/root to edit any of crontab

share|improve this answer
On many systems you can edit your own crontab without sudo/root. – Jenny D Nov 20 '14 at 13:29
@JennyD AFAIK if you have not add user entry in following file it wont work. # vi /etc/security/access.conf – Rajat Nov 20 '14 at 14:47
There are many varieties of unix, and many flavours of linux. Blocking crontab from regular users does not happen in all of them. – Jenny D Nov 20 '14 at 19:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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