27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Usage Notes<br />

Responses<br />

* is the target user ID. You must have class C privileges to change another user<br />

ID’s privilege classes. An asterisk (*) tells <strong>CP</strong> to use the issuer’s user ID.<br />

LOCK<br />

prevents any SET PRIVCLASS comm<strong>and</strong>s from being issued against the target<br />

until an UNLOCK is issued, if either the issuer has class C privileges or the<br />

target user ID is the issuer’s.<br />

RESET<br />

returns the target user ID’s privilege classes to those currently specified in the<br />

<strong>CP</strong> directory if the PRIVCLASS is not locked against SET PRIVCLASS<br />

processing <strong>and</strong> either the issuer has class C privileges or the target user ID is<br />

the issuer’s.<br />

UNLOCK<br />

allows SET PRIVCLASS comm<strong>and</strong>s to be issued against the target if either the:<br />

v Issuer is not the same as the target <strong>and</strong> has class C privileges<br />

v Target user ID is the issuer’s. If the target user ID is the issuer’s ID, the<br />

issuer must confirm his intentions by responding with '1' for this comm<strong>and</strong> to<br />

complete successfuly.<br />

A SET PRIVCLASS * UNLOCK comm<strong>and</strong> issued by a disconnected virtual<br />

machine is rejected because there is no terminal to enter a response.<br />

=classes<br />

sets the specified privilege class or classes for the target user ID, if the user ID<br />

is not locked against SET PRIVCLASS processing <strong>and</strong> either the issuer has<br />

class C privileges or the target user ID is the issuer’s <strong>and</strong> the issuer is<br />

authorized in the directory for the requested classes.<br />

+classes<br />

adds the specified privilege class or classes for the target user ID, if the user ID<br />

is not locked against SET PRIVCLASS processing <strong>and</strong> either the issuer has<br />

class C privileges or the target user ID is the issuer’s, <strong>and</strong> the issuer is<br />

authorized in the directory for the requested classes.<br />

-classes<br />

removes the specified privilege class or classes from the target user ID, if the<br />

user ID is not locked against SET PRIVCLASS processing <strong>and</strong> either the issuer<br />

has class C privileges or the target user ID is the issuer’s.<br />

* indicates all classes, A-6.<br />

0 indicates no classes.<br />

1. Use the SET PRIVCLASS comm<strong>and</strong> to change your privilege classes to a<br />

subset of those defined in your directory entry. Users with class C privilege can<br />

exceed the privilege classes in the system directory. For example, users with<br />

class C privilege may enter a SET PRIVCLASS comm<strong>and</strong> to change another<br />

user ID’s privilege classes.<br />

Response 1:<br />

If you specify the LOCK option <strong>and</strong> the comm<strong>and</strong> completes successfully, you see<br />

something like this:<br />

DAVID’s privilege classes have been locked.<br />

SET PRIVCLASS<br />

Chapter 2. <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> 1323

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!