Find the answer to your Linux question:
Results 1 to 5 of 5
As you know, while my programme core dump, it will creat a file which name is core*, I can set the path and name by /proc/sys/kernel/core_pattern and /proc/sys/kernel/core_user_pid. but the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    6

    Thumbs up A problem about core_dump on ubuntu 9.04


    As you know, while my programme core dump, it will creat a file which name is core*, I can set the path and name by /proc/sys/kernel/core_pattern and /proc/sys/kernel/core_user_pid. but the core file's permission is -rw-------, how can I make the core file's permisson is -rw-r--r-- when core file be created?
    Thanks all.
    My english is not very well.......

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,703
    The core file should belong to the user that ran the program that dumped. As root, or that user, you can change permissions just like any file.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    6
    Quote Originally Posted by Rubberman View Post
    The core file should belong to the user that ran the program that dumped. As root, or that user, you can change permissions just like any file.
    Yes, you are right. but I mean that,
    by default, the core file permission is 0600,I wanna changed this default permission and umask has not effect.
    Thank You.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,703
    I'm not sure you can change the default. Why? Is it a problem?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    Just Joined!
    Join Date
    Oct 2009
    Posts
    6
    Quote Originally Posted by Rubberman View Post
    I'm not sure you can change the default. Why? Is it a problem?
    Yep,It is a problem for me. We have some accounts on our development server. For example, if a programme which belonged to user cmcc core dumped, I login the server with user cmpp, then I can't get the core file on my localhost.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •