QUERY PASSWORD
Authorization
Privilege Class: G
Purpose
Use QUERY PASSWORD to determine whether you can include a password on the command line for the AUTOLOG, LINK, LOGON, or XAUTOLOG command.
Operands
- AUTOLOG
- displays whether you must include a password on the AUTOLOG command line.
- LINK
- displays whether you can include a password on the LINK command line.
- LOGON
- displays whether you can include a password on the LOGON command line.
- XAUTOLOG
- displays whether you can include a password on the XAUTOLOG command line.
Usage Notes
- For security reasons, the password suppression facility permits your installation to require that issuers of commands that require passwords do not include the password in the command line. Instead, after the user enters the command without the password, the system prompts the user to enter the password, and the input field is masked.
- See SET PASSWORD for an explanation of how to set password suppression for the AUTOLOG, LINK, LOGON, and XAUTOLOG commands.
- If you enter QUERY PASSWORD using DIAGNOSE code X'08', you receive one of the following
return codes in your Ry register:
- RC
- Meaning
- 0
- Indicates that you may (must, for AUTOLOG) enter a password on the command line.
- 4
- Indicates that you cannot enter a password on the command line.
- 8
- Error–the operands following on the command line are not valid.
- System programmers responsible for z/VM® security should examine the usage notes for the PASSWORDS_ON_CMDs operand of the FEATURES system configuration statement. See the FEATURES Statement in z/VM: CP Planning and Administration.
Responses
Response 1:
{ AUTOLOG } PASSWORD MUST BE ENTERED SEPARATELY
{ LINK }
{ LOGON }
{ XAUTOLOG }
indicates that you cannot enter the access mode password on the command line.Response 2:
{ LINK } PASSWORD MAY BE INCLUDED ON THE COMMAND LINE
{ LOGON }
{ XAUTOLOG }
indicates that you can enter the access mode password on the command line.Response 3:
{ AUTOLOG } PASSWORD MUST BE INCLUDED ON THE COMMAND LINE
indicates that you must enter the access mode password on the command line.Messages
- HCP002E Invalid operand - operand
- HCP026E Operand missing or invalid