Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 need to temporarily unmonitor a custom daemon when I deploy a new version. I tried monit unmonitor <name>, but it says I don't own monitrc since my deploy script does not run as root or have sudo priveliges for security reasons. Is there an easy way to get around this, to tell monit to let a non-root user start/stop/unmonitor a specific process?

(I could always use curl to accoplish this via the http interface, but just looking for a less hacky way)

share|improve this question
perhaps there is some way to say 'if this file exists then unmonitor', and then I can just touch that file as the non-root user? – Mohamed Hafez Mar 7 '13 at 3:20
I ended up getting around this problem by just enabling password-less sudo just for monit in my sudoers file: web ALL=(ALL) NOPASSWD: /usr/sbin/monit though i'd prefer it if the user web could only call monit for a specific process. – Mohamed Hafez Mar 7 '13 at 15:08

Your Answer


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

Browse other questions tagged or ask your own question.