SUSE / suse-best-practices

SUSE Best Practices documentation series
42 stars 74 forks source link

[doc] Issue in "ENTRY IN SUDO PERMISSIONS /ETC/SUDOERS.D/SAPHANASR FILE" #410

Closed ksanjeet closed 9 months ago

ksanjeet commented 9 months ago

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.

chabowski commented 9 months ago

@lpinne @fmherschel would you mind having a look, please? Thank you!

lpinne commented 9 months ago

Hi, the guide will be updated per pull request #411. Thanks for reporting this issue! Regards, Lars