Display default values for POSIX user attributes
Domain: | USER-ADMINISTRATION |
Privileges: | POSIX-ADMINISTRATION USER-ADMINISTRATION STD-PROCESSING |
This command displays the POSIX default attributes in the user catalog of the specified pubset. The following users may execute the command:
Owners of the POSIX-ADMINISTRATION or USER-ADMINISTRATION privilege for all pubsets.
Group administrators of the *UNIVERSAL group on the pubset administered by them.
Format
SHOW-POSIX-USER-DEFAULTS | ||||||||||||||||||||
|
Operands
PUBSET =
Pubset from whose user catalog the POSIX default attributes are to be displayed.
PUBSET = *HOME
The POSIX default attributes are displayed from the user catalog of the home pubset.
PUBSET = *ALL
The POSIX default attributes are displayed from the user directories of all pubsets which are available when the command is entered.
PUBSET = list-poss(20): <catid 1..4>
The POSIX default attributes are displayed from the user catalog of the specified pubset.
OUTPUT =
Determines the system file for the output of information.
OUTPUT = *SYSOUT
The information is output to the SYSOUT system file.
OUTPUT = *SYSLST(...)
The information is output to the SYSLST system file.
SYSLST-NUMBER =
Determines the SYSLST number.
SYSLST-NUMBER = *STD
Determines standard SYSLST output.
SYSLST-NUMBER = <integer 1..99>
Determines the specified SYSLST number.
LINES-PER-PAGE =
Specifies the line count per page.
LINES-PER-PAGE = 64
64 lines per page are printed by default.
LINES-PER-PAGE = <integer 20..255>
The specified number of lines per page is printed.
Command return codes
(SC2) | SC1 | Maincode | Meaning |
0 | CMD0001 | Command executed without errors | |
2 | 0 | SRM6001 | Command executed with warning |
32 | CMD2009 | Error while creating the output variable | |
32 | SRM6020 | Command rejected due to system error | |
64 | OPS0002 | K2 interruption during output in S variable | |
64 | SRM6040 | Command rejected with error message | |
130 | OPS0001 | Lack of resources during output in S variable | |
130 | SRM6030 | Command rejected because of unavailable resources |
Example
/SHOW-POSIX-USER-DEFAULTS PUBSET=A
Output:
/SHOW-POSIX-USER-DEFAULTS PUBSET=A POSIX-USER-DEFAULTS --- PUBSET A 2009-03-10 14:14:05 ----------------------------------------------------------------------------- USER-NUMBER 200 GROUP-NUMBER 8 COMMENT POSIX public userID DIRECTORY /home/usr0/guest PROGRAM *SHELL ----------------------------------------------------------------------------- POSIX-USER-DEFAULTS END OF DISPLAY
S variables
Output information | Name of the S variable | T | Contents | Condition |
Comment | var(*LIST).COMMENT | S | *NONE | |
Login directory | var(*LIST).DIR | S | <posix-path-name 1..1023> | |
POSIX group number | var(*LIST).GROUP-NUM | I | <integer 0..60002> | |
Name of the program | var(*LIST).PROG | S | *SHELL | |
Catalog ID of the pubset | var(*LIST).PUBSET | S | <catid 1..4> | |
POSIX user number | var(*LIST).USER-NUM | I | <integer 0..60002> |
See the "BS2000 Commands" [28] manual for more information on S variables.
Example
/declare-var var-name=pos-user-def(type=*struct),multi-elem=*list /exec-cmd cmd=(show-posix-user-defaults pubset=a), - / structure-output=pos-user-def,text-output=*none /show-var var-name=pos-user-def POS-USER-DEF(*LIST).PUBSET = A POS-USER-DEF(*LIST).USER-NUM = 100 POS-USER-DEF(*LIST).GROUP-NUM = 1 POS-USER-DEF(*LIST).COMMENT = ́System administration ́ POS-USER-DEF(*LIST).DIR = /home/bs2000 POS-USER-DEF(*LIST).PROG = *SHELL