In the example sudoers entry for susTakeover hook the SID should be in uppercase. I suggest we change the sudoer entry
from:
<sid>adm ALL=(ALL) NOPASSWD: /usr/sbin/SAPHanaSR-hookHelper --sid=<sid> *
to:
<sid>adm ALL=(ALL) NOPASSWD: /usr/sbin/SAPHanaSR-hookHelper --sid=<SID> *
When I tested with lowercase sid then takeover is blocked with RC=1. With uppercase SID takeover is permitted.
ENTRY IN SUDO PERMISSIONS /ETC/SUDOERS.D/SAPHANASR FILE:
https://documentation.suse.com/sbp/sap-15/html/SLES4SAP-hana-scaleout-multitarget-perfopt-15/index.html#id-1.10.12.4
In the example sudoers entry for susTakeover hook the SID should be in uppercase. I suggest we change the sudoer entry from:
<sid>adm ALL=(ALL) NOPASSWD: /usr/sbin/SAPHanaSR-hookHelper --sid=<sid> *
to:<sid>adm ALL=(ALL) NOPASSWD: /usr/sbin/SAPHanaSR-hookHelper --sid=<SID> *
When I tested with lowercase sid then takeover is blocked with RC=1. With uppercase SID takeover is permitted.