On Mon, Apr 04, 2011 at 03:58:06PM +0300, Pavlos Polianidis wrote: > Thank for the respond. > > What I did is in order to run the crm_resource command as a user (let's say > TEST) I added the user "TEST" to the haclient group. But the command "crm" is > refuses to run as TEST. I will try to add a specific command to sudoers and > see if it works
That shouldn't be happening. In which way does it "refuse" to run? Which version of Pacemaker and cluster-glue do you have installed. Thanks, Dejan > > Kind regards, > > Pavlos Polianidis | Technical Support Specialist > > Velti > 44 Kifisias Ave. > 15125 Marousi, Athens, Greece > T +30.210.637.8000 > F +30.210.637.8888 > M +30.695.506.0133 > E [email protected] > www.velti.com > > Velti is a global leader in mobile marketing and advertising solutions for > mobile operators, ad agencies, brands and media groups. > San Francisco | New York | Boston | Dublin | London | Paris | Madrid | Athens > | Sofia | Moscow | Dubai | New Delhi | Mumbai | Jakarta | Beijing | Shanghai > | Sydney > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Dejan Muhamedagic > Sent: Monday, April 04, 2011 3:51 PM > To: General Linux-HA mailing list > Subject: Re: [Linux-HA] op monition on-fail option > > Hi, > > On Tue, Mar 22, 2011 at 06:39:08PM +0200, Pavlos Polianidis wrote: > > Dear all, > > > > I am looking for a way to add/modify an op-option "op monitor > > on-fail="restart"" through a single command besides using the crm cli. I > > tried with crm_resource but no luck. I need the command to use it in a > > script as a non-root user, that's why I cannot use a command such as "crm > > configure .........". Is there a way to do that? > > A non-root user? Which one? Do you then use sudo in your script? > If so, you can set the "user" option in crm (see "crm options > help user"). Now, it's going to be tricky to do what you want > from a script. Take a look here > http://marc.info/?l=linux-ha&m=130148966631607&w=2 > > Thanks, > > Dejan > > > > > Thanks in advance > > > > Pavlos Polianidis | Technical Support Specialist > > > > Velti > > 44 Kifisias Ave. > > 15125 Marousi, Athens, Greece > > T +30.210.637.8000 > > F +30.210.637.8888 > > M +30.695.506.0133 > > E [email protected] > > www.velti.com<http://www.velti.com> > > > > Velti is a global leader in mobile marketing and advertising solutions for > > mobile operators, ad agencies, brands and media groups. > > San Francisco | New York | Boston | Dublin | London | Paris | Madrid | > > Athens | Sofia | Moscow | Dubai | New Delhi | Mumbai | Jakarta | Beijing | > > Shanghai | Sydney > > > > _______________________________________________ > > Linux-HA mailing list > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
