[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stop a service as a non root user

From: Nestor Urquiza
Subject: Re: stop a service as a non root user
Date: Tue, 2 Jul 2013 06:52:31 -0400

Hi Mihamina,

That demands root password. It does not resolve the problem.


- Nestor

On Jul 2, 2013, at 4:38 AM, Mihamina Rakotomandimby <address@hidden> wrote:

On 2013-07-02 01:46, Nestor Urquiza wrote:
Hi folks,

We run monit as root which is specially important for Apache service.

Monit controls tomcat servers which run under a different user.

As a non root user I want to to be able to run 'monit tomcat stop' so that I can manage the service the way I would do without monit.

We can issue "service tomcat stop" but of course monit restarts it again.


$ su - $AN_USER $A_COMMAND would do it

Or, alternatives:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]