Running HA as nobody:nobody
I am running 5.1 HA on a RHEL setup. Right now I have a working cluster with application failover. All our application are set to be run as the nobody:nobody account on the system. As part of the HA integration a requirement came up to that we need to be able to start and stop services and run commands with the nobody:nobody account. Because VCS is all setup to run as root, what it is the best way to accomplish this?
You need to use the following:
root # hauser -add nobody -priv Administrator
(Provide the password here)
Now enter into nobody's account:
root # su - nobodyExecute the following so that ha commands will not require a password for this user shell.
nobody $ halogin nobody <password>nobody $ hares -state
Now all "ha" commands should work fine through "nobody" account without requiring password.
Hope that helps.