Change directory for core dumps

This is a discussion on Change directory for core dumps within the Linux General forums, part of the Linux Forums category; Is there a way to configure a directory to be used for core dumps? Platform is RHEL v4. [Background: I ...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-24-2008
mark.bergman@thales-is.com
 
Posts: n/a
Default Change directory for core dumps

Is there a way to configure a directory to be used for core dumps?
Platform is RHEL v4.

[Background: I have a process that does setuid() calls to a different
user, and the home directory of the original user is not writable for
the new user. I would like to configure some general directory (e.g. /
tmp) where are core files are written.]

TIA
M
Reply With Quote
  #2 (permalink)  
Old 06-24-2008
The Natural Philosopher
 
Posts: n/a
Default Re: Change directory for core dumps

mark.bergman@thales-is.com wrote:
> Is there a way to configure a directory to be used for core dumps?
> Platform is RHEL v4.
>
> [Background: I have a process that does setuid() calls to a different
> user, and the home directory of the original user is not writable for
> the new user. I would like to configure some general directory (e.g. /
> tmp) where are core files are written.]
>
> TIA
> M

Arent core dumps written by the operating system itself?

I might be wrong here, but thats the way I assumed it worked..

In which case permissions are no issue.
Reply With Quote
  #3 (permalink)  
Old 06-24-2008
Lew Pitcher
 
Posts: n/a
Default Re: Change directory for core dumps

In comp.os.linux.misc, mark.bergman@thales-is.com wrote:

> Is there a way to configure a directory to be used for core dumps?


echo "/path/to/new/core/directory/core" >/proc/sys/kernel/core_pattern

[snip]
--
Lew Pitcher

Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:33 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0