You are not logged in.

#1 2008-08-06 20:24:57

snafle
Member
Registered: 2008-04-08
Posts: 41

Execution permissions by disk? (hopefully a stupid problem)

I've installed two new programs recently, srcds and the dmd d compiler. The dmd d compiler functioned perfectly when I first installed it, then I rebooted the machine, then I installed srcds.

Whenever I try to run dmd I get the error:

bash: /home/tom/Programs/dmd/bin/dmd: Permission denied

and whenever I try to run the srcds I first get:

bash: ./srcds_run: /bin/sh: bad interpreter: Permission denied

after which, I explicitly tell it to run with sh, at which point it tells me

'./srcds_i486' not executable, exiting

I'm quite confused as to why these programs are failing- all the permissions are 777, so should be free for all for everyone, yet no dice.
All my other programs work, however these are on a different partition (the ones I've having problems with are on my big Raid5 LVM array).

I have run several things on this disc before. The only change I can think of was moving my home folder to the big disc and symlinking back into the directory structure- this should not make a difference? (I didn't think). My FSTAB for that disc is rw,nosuid,dev,sexe,auto,user,async.

If anyone can shed some light, I'd be most appreciative.

Offline

#2 2008-08-07 00:25:44

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Execution permissions by disk? (hopefully a stupid problem)

Try chown


neutral

Offline

#3 2008-08-07 01:09:13

FreakGuard
Member
Registered: 2008-04-27
Posts: 103

Re: Execution permissions by disk? (hopefully a stupid problem)

May we get a ls -l of these files? (and perhaps an id)

Offline

#4 2008-08-07 17:27:36

snafle
Member
Registered: 2008-04-08
Posts: 41

Re: Execution permissions by disk? (hopefully a stupid problem)

uid=1002(tom) gid=100(users) groups=6(disk),10(wheel),93(optical),100(users)

is the response from ID

and ls -l of my dmd folder is:

-rwxrwxrwx 1 tom users   85776 Aug  8  1996 dm.dll
-rwxrwxrwx 1 tom users 1031932 May 16 23:01 dmd
-rwxrwxrwx 1 tom users      64 Jan 28  2007 dmd.conf
-rwxrwxrwx 1 tom users 1084444 May 16 21:25 dmd.exe
-rwxrwxrwx 1 tom users   39064 Apr 23 19:32 dumpobj
-rwxrwxrwx 1 tom users  150288 Aug  8  1996 eecxxx86.dll
-rwxrwxrwx 1 tom users   80656 Aug  8  1996 emx86.dll
-rwxrwxrwx 1 tom users   48668 Sep 20  2004 make.exe
-rwxrwxrwx 1 tom users  275216 Aug  8  1996 mspdb41.dll
-rwxrwxrwx 1 tom users   90348 Apr 23 19:32 obj2asm
-rwxrwxrwx 1 tom users  307924 Feb 25  2006 rdmd
-rwxrwxrwx 1 tom users  131100 Nov 26  2006 rdmd.exe
-rwxrwxrwx 1 tom users     687 Apr 26  2006 readme.txt
-rwxrwxrwx 1 tom users   32768 Jun 10  1999 replace.exe
-rwxrwxrwx 1 tom users     146 Nov 18  2002 sc.ini
-rwxrwxrwx 1 tom users   57616 Aug  8  1996 shcv.dll
-rwxrwxrwx 1 tom users   57372 Oct 18  2005 shell.exe
-rwxrwxrwx 1 tom users    8976 Aug  8  1996 tlloc.dll
-rwxrwxrwx 1 tom users  559888 Aug  8  1996 windbg.exe
-rwxrwxrwx 1 tom users  215274 Aug  8  1996 windbg.hlp

As you can see, I own then, and they are all executable by everything. I'm outta my deapth.

Last edited by snafle (2008-08-07 17:35:28)

Offline

#5 2008-08-07 17:34:53

ScriptDevil
Member
From: In Front of My PC
Registered: 2006-04-06
Posts: 253

Re: Execution permissions by disk? (hopefully a stupid problem)

Well.. do all other executables shell scripts execute? And yeah, _do_not_ keep a 777 permission... 755 is good enough for most


Be yourself, because you are all that you can be

Offline

#6 2008-08-09 22:02:42

snafle
Member
Registered: 2008-04-08
Posts: 41

Re: Execution permissions by disk? (hopefully a stupid problem)

I can't execute anything on the LVM.

Offline

#7 2008-08-09 22:09:10

xvalentinex
Member
Registered: 2008-05-31
Posts: 22

Re: Execution permissions by disk? (hopefully a stupid problem)

Try putting the mount option ' exec ' in your /etc/fstab then remount your partition or reboot.

If it already has a ' noexec ' mount option, remove it.

Last edited by xvalentinex (2008-08-09 22:10:06)

Offline

#8 2008-08-10 14:34:01

snafle
Member
Registered: 2008-04-08
Posts: 41

Re: Execution permissions by disk? (hopefully a stupid problem)

It already does, I must have mistyped when I transposed it into here. The bit that says "sexe" is actually exec.

My FSTAB for that disc

rw,nosuid,dev,exec,auto,user,async

Offline

#9 2008-08-11 19:14:25

snafle
Member
Registered: 2008-04-08
Posts: 41

Re: Execution permissions by disk? (hopefully a stupid problem)

Weirdly thing is on my main disc (which is only different in that it isn't LVM- it's still a partition on the RAID 5 array), dmd works no worried. It's got to be something to do with the disc.

Last edited by snafle (2008-08-11 19:15:14)

Offline

#10 2008-08-11 20:08:58

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Execution permissions by disk? (hopefully a stupid problem)

snafle wrote:

It already does, I must have mistyped when I transposed it into here. The bit that says "sexe" is actually exec.

My FSTAB for that disc

rw,nosuid,dev,exec,auto,user,async

user implies 'noexec', so move exec after 'user'


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB