Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-16-2009, 06:02 AM   #1
LQ Newbie
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
File Permission - Read an execute only file


Suppose I have a binary program with only execute permission enabled for the current user. How (in general) would I be able to obtain a core dump of the file? I think I have read it somewhere but I want to know if there are more ways of doing it.

Old 12-16-2009, 08:08 AM   #2
LQ Newbie
Registered: Apr 2009
Location: Poland
Distribution: Fedora
Posts: 6

Rep: Reputation: 0
first i need to determine what you mean by coredump.

when i hear coredump i think of this. if this is what you mean then you only get one if your program crashes. also you need to set a userlimit to tell the kernel how big of a coredump you want.

normally you would do something like
ulimit -c unlimited
this sets the size limit for your cores to, you guessed it, unlimited.

after running this line, when your program crashes will have a file called, most likely, core.<PID>.

if you want to get a copy of the binary data within the file then i doubt you can do that unless you have some tool that goes around the filesystem. another way might be, running the application then trying to read the contents of the ram into which the application was loaded. if you don't have root access but do have access to the physical machine (and you can turn it off without consequence) then you can try running a livecd on the machine and using the root of that to read the file contents.

if you are thinking of some other coredump, please explain exactly what you mean.


file, permission

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
File user permission allow read only on soft-link files. hocheetiong Linux - Newbie 1 05-04-2009 12:20 PM
to change the permission of read only file systems jessyvjose1 Linux - Newbie 3 11-18-2008 07:23 PM
Debian on VBox Read Only File System and Permission Denied Errors The Konqi Kid Debian 5 03-04-2008 06:07 PM
File Permissions - Execute Not Read baddah Linux - Newbie 3 05-23-2007 04:08 PM
Read contents of file and execute command cosiek Programming 3 09-30-2003 12:07 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration