This question already has an answer here:

I can just run systemctl suspend in my terminal without sudo, and my laptop goes to sleep.

However, when I want to make a crontab for the same user that previously ran the command just fine without sudo (me) this doesn't work, and I have to run sudo crontab -e instead of just crontab -e to generate the crontab.

marked as duplicate by strugee, Jakuje, GAD3R, mattdm, sam Mar 9 '17 at 15:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.