Changes the corefile settings.
chcore [ -R registry ] [ -c {on|off|default} ] [ -p {on|off|default} ] [ -l {path| default] [ -n {on|off|default} ] [ username | -d ]
chcore [-R registry] options [username|-d]
where, -c {on|off|default}
setting for core compression -p {on|off|default}
setting for core location -l path
specify directory to use -n {on|off|default}
setting for core naming If -d is specified, chcore will change the default setting for the system. The -d option is mutually exclusive with a specified username and with any specification of a registry. If neither -d nor a username is supplied, chcore will change the setting for the current user. Both the -d option and the ability to change settings for another user (other than the current user) are privileged operations, and may only be run by root or another user with system authority. Any changes made will not take effect until the next login session.
To change attributes an alternate Identification and Authentication (I&A) mechanism, the -R flag can be used to specify the I&A load module. If the -R flag is not specified, the chcore command uses the default attributes. Load modules are defined in the /usr/lib/security/methods.cfg file.
Item | Description |
---|---|
-c {on|off|default} | Setting for core compression. |
-d | Changes the default setting for the system. |
-l path | Directory path for stored corefiles. |
-n {on|off|default} | Setting for core naming. |
-p {on|off|default} | Setting for core location. |
-R registry | Specifies the loadable I&A module. |
The command can only be run by root or another user with system authority.
Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
chcore -c on -p default root
chcore -p on -l /corefiles -d
Item | Description |
---|---|
/usr/lib/security/methods.cfg | Contains load module definitions. |
/etc/security/user | Contains extended user attributes. |