Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

SHOW-POSIX-USER-DEFAULTS

&pagelevel(3)&pagelevel

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                                                                                                                

PUBSET = *HOME / *ALL / list-poss(20): <catid 1..4>

,OUTPUT = list-poss(2): *SYSOUT / *SYSLST(...)


*SYSLST(...)



|

SYSLST-NUMBER = *STD / <integer 1..99>



|

,LINES-PER-PAGE =64 / <integer 20..255>

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)SC1MaincodeMeaning

0CMD0001Command executed without errors
20SRM6001Command executed with warning

32CMD2009Error while creating the output variable

32SRM6020Command rejected due to system error

64OPS0002K2 interruption during output in S variable

64SRM6040Command rejected with error message

130OPS0001Lack of resources during output in S variable

130SRM6030Command 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
<c-string 1..255>


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
<posix-path-name 1..1023>


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