Emergency SAP Portal log in procedure:
http://help.sap.com/saphelp_nw04s/helpdata/en/3a/4a0640d7b28f5ce10000000a155106/frameset.htm
Log in as <SID>adm
Navigate to /usr/sap/<SID>/JC<instance>/j2ee/configtool
Run Configtool
Navigate to Global server configuration -> Services -> com.sap.security.core.ume.service
Change field ume.superadmin.activated to TRUE
Change field ume.superadmin.password to a new password
(under CUA this may have to be set to blank in order to use the password from the backend UME system)
Save changes
Restart the Java instance
Log in as SAP* user. All other users will be locked out at this stage and they will be shown a warning on the Portal log in page.
When Portal config work is complete:
Change field ume.superadmin.activated back to FALSE
Restart Java instance