This error occurs with a user with SYS1 in attribute 8 of USERS file if you call verb getlogonmode
:getlogonmode
[82] in program "unix_GetUserLogonMode", Your system privilege level is not sufficient for this statement.
This is used by verbs PASSWORD and Z for instance. With these verbs it requires SYS2 privilege.