
You are setting up a key in hdbuserstore by using below command,
hdbuserstore -u SAPServiceSID SET DEFAULT
HANA_HOST:HANA_PORT SAPABAP1 PASSWORD
The following error coming out,
Error 91007: Impersonation not supported, use sudo on
this platformThe following error coming out
Solution
Depending on your HANA revision level, you can use any of the method listed below. We manage to solve our issue by using the method number 2. It’s easy and simple.
Method 1
Step 1: Use hdbuserstore list to output all the existing KEY in the system.
hdbuserstore list
DATA FILE : /usr/sap/SID/home/.hdb/hostname/SSFS_HDB.DAT
KEY FILE : /usr/sap/SID/home/.hdb/hostname/SSFS_HDB.KEY
KEY DEFAULT
ENV : hostname:30015
USER: SAPABAP1
KEY MONITOR
ENV : hostname:30015
USER: SAPMONITOR
KEY MAINTENANCE
ENV : hostname:30015
USER: SAPMAINTAIN
Step 2: If you see above output, it seems that someone has already created the DEFAULT KEY name in the system. You must use a different KEY name. Example, as below.
hdbuserstore -u SAPServiceSID SET NEW_KEY_NAME
HANA_HOST:HANA_PORT SAPABAP1 PASSWORD
Method 2
Remove option -u and the username. Just execute below command,
hdbuserstore SET DEFAULT HANA_HOST:HANA_PORT SAPABAP1 PASSWORD
Reference
- 2257893 – Error 91007: Impersonation not supported, use sudo on this platform
- 2490597 – “Error 91007: Impersonation not supported, use sudo on this platform” when trying to create a key in hdbuserstore



I have serious doubts you understood the root cause of the issue you were initially having. I also doubt that there even exists a user with the name “SAPServiceSID” on your host.