Modify POSIX default attributes
Component: | SRPMNUC |
Functional area: | User management |
Domain: | USER-ADMINISTRATION |
Privileges: | STD-PROCESSING |
Function
The MODIFY-POSIX-USER-DEFAULTS command modifies the POSIX default attributes in the user catalog of the specified pubset. It is available to the following users:
holders of the POSIX-ADMINISTRATION or USER-ADMINISTRATION privilege, for all pubsets.
group administrators of the *UNIVERSAL group on the pubset which they manage.
The POSIX default attributes are applied when a new user entry is created (with the ADD-USER command).
The current POSIX default values can be displayed by means of the SHOW-POSIX-USER-DEFAULTS command
Format
MODIFY-POSIX-USER-DEFAULTS |
PUBSET = *HOME / <cat-id 1..4> ,USER-NUMBER = *UNCHANGED / <integer 0..60002> ,GROUP-NUMBER = *UNCHANGED / <integer 0..60002> ,COMMENT = *UNCHANGED / *NONE / <c-string 1..255 with-low> ,DIRECTORY = *UNCHANGED / *ROOT / <posix-pathname 1..1023 without-wild> ,PROGRAM = *UNCHANGED / *SHELL / <posix-pathname 1..1023 without-wild> |
Operands
PUBSET =
Pubset for which the POSIX default attributes in the user catalog are to be changed.
PUBSET = *HOME
The POSIX default attributes are changed in the user catalog of the home pubset.
PUBSET = <cat-id 1..4>
The POSIX default attributes are changed in the user catalog of the specified pubset.
USER-NUMBER =
The user number can be changed.
USER-NUMBER = *UNCHANGED
The user number is not changed.
USER-NUMBER = <integer 0..60002>
The user number is given the specified value.
GROUP-NUMBER =
The group number can be changed.
GROUP-NUMBER = *UNCHANGED
The group number is not changed.
GROUP-NUMBER = <integer 0..60002>
The group number is given the specified value.
COMMENT =
The comment can be changed.
Note
This comment is used, for example, by mail programs to describe the sender.
COMMENT = *UNCHANGED
The comment is not changed.
COMMENT = *NONE
No comment is added.
COMMENT = <c-string 1..255 with-low>
The specified comment is added.
DIRECTORY =
The absolute path name of the user’s login directory can be changed.
DIRECTORY = *UNCHANGED
The absolute path name is not changed.
DIRECTORY = *ROOT
The root directory / is assigned as login directory.
DIRECTORY = <posix-pathname 1..1023 without-wild>
The specified path name is assigned as login directory.
PROGRAM =
The program started up after the user logs in can be changed.
PROGRAM = *UNCHANGED
The program is not changed.
PROGRAM = *SHELL
The default POSIX shell is started up.
PROGRAM = <posix-pathname 1..1023 without-wild>
The specified program is run.
Return codes
(SC2) | SC1 | Maincode | Meaning |
---|---|---|---|
0 | CMD0001 | Command executed without error | |
2 | 0 | SRM6001 | Command executed with warning |
32 | SRM6020 | Command rejected owing to system error | |
64 | SRM6040 | Command rejected with error message | |
130 | SRM6030 | Command rejected owing to insufficient resources |