When in OMVS and issuing the su command to gain superuser status, UID(0), and follow that with the whoami command, I get the error "Error for uid: 0". What causes this error?
The OMVS SU command without additional parameters is used to change the user from an ordinary user to a superuser.
The WHOAMI returns the userid associated with the profile record for UID(0) from the ACF2 OMVS table.
Error for uid: 0
The message "Error for uid: 0" is caused by the first profile in the list of UID(0) profiles not having an available logonid record associated with that profile record. This could be because the logonid is either not found, or is cancelled or suspended.
The following can be done to determine what ACF2 USER PROFILE entry with UID(0) is the first entry in the table that is causing the problem.
From TSO ACF:
show omvs user(0-0)
-- OPENEDITION MVS DISPLAY --
-- OMVS USERS --
Then from TSO ACF do a LIST of the first entry in the table displayed from the above SHOW command.
(..... record not found .....
..... or record is cancelled or suspended .....)
At this point based on the results of the above LIST command, a site can decide if the logonid needs to be defined or unsuspended, or if the ACF2 OMVS USER PROFILE record should be deleted.