[Pacemaker] [pacemaker] unable to execute commands like crm configure show.crm resource stop

Dejan Muhamedagic dejanmm at fastmail.fm
Thu Apr 28 04:44:12 EDT 2011


On Thu, Apr 28, 2011 at 06:20:24AM +0000, Rakesh K wrote:
> Dejan Muhamedagic <dejanmm at ...> writes:
> 
> > 
> > Hi,
> > 
> > On Wed, Mar 16, 2011 at 10:58:16AM +0530, rakesh k wrote:
> > > Hi All
> > > 
> > > I had installed pacemaker,heartbeat on my unix machine, I had created an SSH
> > > user who can access my unix machine remotely.
> > > I had given permissions for that user by editing *sudoers *file so that he
> > > can perform all the opertaions related to *crm*
> > > 
> > > The configuration i used is as follows in sudoers file.
> > > <username> ALL=NOPASSWD:/usr/sbin
> > > 
> > > since the commands like crm_mon.crm_verify, cibadmin resides in the
> > > /usr/sbin directory.
> > > 
> > > but when my ssh user is executing the following opertation
> > > *-Bash-3.2#sudo /usr/sbin/crm configure show*
> > > *-Bash-3.2#sudo /usr/sbin/crm resource stop*
> > > 
> > > This is the following error poping out
> > > *sudo /usr/sbin/crm configure show
> > > cibadmin not available, check your installation*
> > > 
> > > Please provide me the solution to come over this type of situations.
> > 
> > /usr/sbin is not in the PATH.
> > 
> > Thanks,
> > 
> > Dejan
> > 
> > > 
> > > Regards
> > > Rakesh
> > 
> > > _______________________________________________
> > > Pacemaker mailing list: Pacemaker at ...
> > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> > > 
> > > Project Home: http://www.clusterlabs.org
> > > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > > Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
> > 
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker at ...
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> > 
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
> > 
> > 
> Hi Dejan
> 
> Thanks for providing the info, as mentioned i tried creating a bash profile in
> which i exported the PATH variable
> 
> Here is my bash profile.
> # .bash_profile
> 
> # User specific environment and startup programs
> 
> PATH=$PATH:/usr/sbin
> 
> export PATH
> 
> 
> even though i am facing the same issue ..when i try to execute the commands from
> ssh user i am getting the same issue again and again. is there any other way to
> execute this commands from an ssh user.

Does this happen only with ssh? If so, then go read the ssh
documentation. Otherwise, try with the sudo docs. The user must
have /usr/sbin in the path.

Thanks,

Dejan

> Regards
> Rakesh
>  
> 
> 
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker




More information about the Pacemaker mailing list