LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 03-19-2007, 07:33 AM   #1
timyang
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
Valkyrie_of_valhalla
Member
 
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
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

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

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

Check:

mount

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
timyang
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.
 
  


Reply


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 11:47 PM.

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