PDA

View Full Version : administrate crm cluster through non-root user



mnshsnghl
15-Aug-2019, 11:49
Hi,

I have added my user in haclient group-
$ id
uid=1000(user1) gid=100(users) groups=100(users),90(haclient)

But still when I run crm status or crm_mon commands they fail with permission denied error -
/usr/sbin/crm status
ERROR: status: crm_mon (rc=13): Connection to cluster failed: Permission denied

/usr/sbin/crm_mon -1

Connection to cluster failed: Permission denied

What additional setting I need to be doing to make the cluster managed through my user, which is not root ?

eblock
15-Aug-2019, 13:03
Hi,

you can find detailed information about non-root users in the docs (https://www.suse.com/documentation/sle-ha-12/singlehtml/book_sleha/book_sleha.html#app.crmreport.nonroot)? The user required sudo permissions and a passwordless login via ssh.

Regards,
Eugen

mnshsnghl
16-Aug-2019, 05:56
yes, that all things are done.

strahil-nikolov-dxc
18-Aug-2019, 20:19
Have you tried via
sudo crm_mon -r1