LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

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

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


Hi,

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.

Thanks!
 
Old 12-16-2009, 07:08 AM   #2
kubaPL
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.
 
  


Reply

Tags
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 11:20 AM
to change the permission of read only file systems jessyvjose1 Linux - Newbie 3 11-18-2008 06:23 PM
Debian on VBox Read Only File System and Permission Denied Errors The Konqi Kid Debian 5 03-04-2008 05:07 PM
File Permissions - Execute Not Read baddah Linux - Newbie 3 05-23-2007 03:08 PM
Read contents of file and execute command cosiek Programming 3 09-30-2003 11:07 AM


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

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