Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > A problem about core_dump on ubuntu 9.04

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 4 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 4
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.......
lynx1987 is offline  


Reply With Quote
Old 4 Weeks Ago   #2 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,624
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.
Rubberman is offline   Reply With Quote
Old 4 Weeks Ago   #3 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 4
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.
lynx1987 is offline   Reply With Quote
Old 4 Weeks Ago   #4 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,624
I'm not sure you can change the default. Why? Is it a problem?
__________________
Sometimes, real fast is almost as good as real time.
Rubberman is offline   Reply With Quote
Old 1 Week Ago   #5 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 4
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.
lynx1987 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:37 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2