Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (4770 KB)
coreadm(1M)NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXIT STATUS | EXAMPLES | FILES | ATTRIBUTES | SEE ALSO NAME
SYNOPSIS
coreadm [-p pattern] [pid...] coreadm -u DESCRIPTION
The coreadm command is used to specify the name and location of core files produced by abnormally-terminating processes. See core(4). The first form shown in the synopsis can be executed only by the super-user and is used to configure system-wide core file options, including a global core file name pattern and a per-process core file name pattern for the init(1M) process. All such settings are saved in coreadm's configuration file /etc/coreadm.conf for setting on reboot. See init(1M) The second form can be executed by non-privileged users and is used to specify the file name pattern to be used by the operating system when generating a per-process core file. The third form can be executed only by the super-user and is used to update all system-wide core file options based on the contents of /etc/coreadm.conf. Normally this option is used only on reboot by the startup script /etc/init.d/coreadm. A core file name pattern is a normal file system path name with embedded variables, specified with a leading % character, that are expanded from values in effect when a core file is generated by the operating system. The possible variables are: For example, the core file name pattern:
The coreadm command with no arguments reports the current system configuration, for example:
The coreadm command with only a list of process-IDs reports each process's per-process core file name pattern, for example:
When a process is dumping core, the operating system will generate two possible core files, the global core file and the per-process core file. Both files, one or the other, or no file will be generated, based on the system options in effect at the time. When generated, a global core file will be created mode 600 and will be owned by the super-user. Non-privileged users cannot examine such files. Ordinary per-process core files are created mode 600 under the credentials of the process. The owner of the process can examine such files. A process that is or ever has been setuid or setgid since its last exec(2), including a process that began life with super-user privileges and gave up that privilege by way of setuid(2), presents security issues with respect to dumping core, as it may contain sensitive information in its address space to which the current non-privileged owner of the process should not have access. If setid core files are enabled, they will be created mode 600 and will be owned by the super-user. OPTIONS
The following options are supported: OPERANDSEXIT STATUS
The following exit values are returned: EXAMPLESExample 1 Setting the core file name patternWhen executed from a user's $HOME/.profile or $HOME/.login, the following command sets the core file name pattern for all processes run during the login session:
Example 2 Dumping user's files into a subdirectoryThe following command dumps all of the user's core dumps into the corefiles subdirectory of the home directory, discriminated by the system node name. This is useful for users who use many different machines but have a shared home directory.
FILES/etc/init.d/coreadm /etc/coreadm.conf ATTRIBUTESSee attributes(5) for descriptions of the following attributes:
SEE ALSOSunOS 5.9 Last Revised 3 Jan 2002NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXIT STATUS | EXAMPLES | FILES | ATTRIBUTES | SEE ALSO |
|||||||||