What Commands Will Remove Superuser Privilege for a LogonID?
search cancel

What Commands Will Remove Superuser Privilege for a LogonID?

book

Article ID: 129029

calendar_today

Updated On:

Products

ACF2 ACF2 - DB2 Option ACF2 for zVM ACF2 - z/OS ACF2 - MISC

Issue/Introduction

Superuser privilege was granted temporarily to a LogonID, and now needs to be removed. 

What commands can remove Superuser privilege for a LogonID?

Environment

z/OS
USS

Resolution

Here are examples of two ways to REMOVE Superuser privilege for Logonid OMVSU2: 

1) Change the UID number - make it non-zero:

SET PROFILE(USER) DIV(OMVS) 
CHANGE xxxxxx UID(199) HOME(/u/xxxxxx) OMVSPGM(/bin/sh) 

OR 

2)  Delete the OMVS record for that LogonID completely (i.e. keep the Logonid but take away all OMVS data): 

SET PROFILE(USER) DIV(OMVS) 
DELETE xxxxxx