[Pacemaker] How to run heartbeat and pacemaker resources as a non-root user

Lars Ellenberg lars.ellenberg at linbit.com
Fri Feb 24 07:24:10 EST 2012


On Fri, Feb 24, 2012 at 10:28:05AM +1100, Andrew Beekhof wrote:
> On Tue, Feb 21, 2012 at 2:41 PM, neha chatrath <nehachatrath at gmail.com> wrote:
> > Hello,
> >
> > Thanks for the reply.
> > I have been successfully using Heartbeat as a root user.
> > But I have a system requirement for which I need to run my different custom
> > applications  (configured using crm)  as a non root user.
> > Can this be done?
> 
> "su - otheruser" in the resource agent
> have a look in the existing agents for how they do it

Maybe we should add a "user" option to the ocf_run() helper?

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com




More information about the Pacemaker mailing list