Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 03-19-2007, 07:33 AM   #1
LQ Newbie
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
File execution denied

I have a SUSE Linux on my notebook as a partition. It can be run directly with its native kernel with version 2.6.13-8-default, or run within MS-Windows with a CoLinux kernel version 2.6.11-co-0.6.4.

I found a strange behavior on this system that I have not observed my other Linux boxes.
It refuses to excute a file if it is not in certain directories. I have compiled a hello.c and no matter how I set the file permission, it refuses to execute the a.out, or any name it turns into. The failure reported by bash is "Permission Denied". If I copied this file into /usr/bin, then it excutes correctly. I copied some file from /usr/bin into my home directory, for example bzip2 and type ./bzip2. The same error happens. I logged in as root, and the same happens.

Since two different kernels behaves the same, I think this is not a problem of kernel configuration.
Is this certain security check enabled somewhere, or is there something wrong with this system?
Old 03-19-2007, 07:39 AM   #2
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
are you sure you aren't mounting the partition with certain parameters that don't let you modify permissions?
my first shot would be to check fstab
Old 03-19-2007, 07:41 AM   #3
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
File systems can be mounted with option:
NO execute

The result is that no executable can be run from there.



If you see noexec, you know where the problem is.

You can manually change the options in runtime (means its transparent and harmless for apps):
mount -o remount,exec /home
Old 03-19-2007, 07:49 AM   #4
LQ Newbie
Registered: Mar 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Ok. I checked the mount, and the /home partition is noexec.

Thanks for the quick answer.


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 execution ygloo Linux - General 2 11-07-2006 12:25 PM
file execution zaid Linux - General 3 01-18-2006 06:32 AM
file execution zaid Linux - General 1 01-17-2006 08:28 PM
cvs rtag: script execution failed: permission denied markpetit Linux - Software 0 05-25-2005 12:47 PM
file execution doubt pongsu Linux - General 2 09-25-2003 02:23 PM

All times are GMT -5. The time now is 08:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration