You are not logged in.

#1 2007-09-03 20:05:47

mac57
Member
From: St. Somewhere
Registered: 2006-01-06
Posts: 302
Website

New Security Settings Prevents Running Pgm From Local Directory?

I am an occassional Linux software author among other things, and have recently installed Arch 2007.08 (Don't Panic). Today I compiled and built one of my programs only to discover that Arch doesn't allow me to run it from its build directory. The usual

./progname

produce the error:

bash: permission denied

BUT, if I copy the same executable to /usr/local/bin, it runs happily from there.

I am guessing this is some form of new security mechanism that has been introduced. Can anyone enlighten me as to what this is? Is there a way to defeat it?

By the way, I have tried this on the simplest of programs, the proverbial "hello world", so I know that my software isn't attempting to access files that it doesn't have permissions for. This seems to be a system wide thing.

Any and all insights most appreciated!

Last edited by mac57 (2007-09-03 20:06:07)


Cast off the Microsoft shackles Jan 2005

Offline

#2 2007-09-05 01:26:55

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: New Security Settings Prevents Running Pgm From Local Directory?

Check your mount options, 'user(s)' automatically includes 'noexec'.


1000

Offline

#3 2007-09-05 19:03:34

mac57
Member
From: St. Somewhere
Registered: 2006-01-06
Posts: 302
Website

Re: New Security Settings Prevents Running Pgm From Local Directory?

Thanks, will do! I hadn't even considered that, since this is an ext2 volume...


Cast off the Microsoft shackles Jan 2005

Offline

Board footer

Powered by FluxBB