Strange execute problem?

New to Debian (Or Linux in general)? Ask your questions here!

Strange execute problem?

Postby markspoiss » 2009-12-10 17:52

if i try to execute over ssh on my virtual server call of duty united offensive server or ventrilo server then i get error permission denied.. ok i give permissions and after that i try it again then i get error:

gn10:~/coduo# ./coduo_lnxded
-bash: ./coduo_lnxded: No such file or directory
gn10:~/coduo#

what is wrong:( sry about my english.

gn10:~/coduo# ls -la
total 14580
drwxr-xr-x 6 root root 4096 Dec 10 18:47 .
drwxr-xr-x 5 root root 4096 Dec 10 19:01 ..
-rw-r--r-- 1 root root 1564672 Dec 10 18:44 CoDMP.exe
-rw-r--r-- 1 root root 2912062 Dec 10 18:45 CoDSP.exe
-rw-r--r-- 1 root root 1904640 Dec 10 18:45 CoDUOMP.exe
-rw-r--r-- 1 root root 2999821 Dec 10 18:46 CoDUOSP.exe
-rw-r--r-- 1 root root 9461 Dec 10 18:46 README
-rw-r--r-- 1 root root 338944 Dec 10 18:43 binkw32.dll
-rw-r--r-- 1 root root 462848 Dec 10 18:43 cgamex86.dll
-rw-r--r-- 1 root root 259756 Dec 10 18:43 cod.bmp
-rw-r--r-- 1 root root 713224 Dec 10 18:43 cod_lnxded
-rwxrwxr-- 1 root root 745032 Dec 10 18:45 coduo_lnxded
-rw-r--r-- 1 root root 737280 Dec 10 18:46 gamex86.dll
-rw-r--r-- 1 root root 1975 Dec 10 18:46 localization.txt
drwxr-xr-x 3 root root 4096 Dec 10 14:50 main
drwxr-xr-x 2 root root 4096 Dec 10 14:50 miles
-rw-r--r-- 1 root root 370688 Dec 10 18:46 mss32.dll
drwxr-xr-x 3 root root 4096 Dec 10 14:52 pb
-rw-r--r-- 1 root root 253952 Dec 10 18:46 uix86.dll
drwxr-xr-x 3 root root 4096 Dec 10 18:43 uo
-rw-r--r-- 1 root root 520192 Dec 10 18:47 uo_cgamex86.dll
-rw-r--r-- 1 root root 774144 Dec 10 18:47 uo_gamex86.dll
-rw-r--r-- 1 root root 258048 Dec 10 18:47 uo_uix86.dll
markspoiss
 
Posts: 1
Joined: 2009-12-10 17:42

Re: Strange execute problem?

Postby utrrrongeeb » 2009-12-11 11:15

Here's your problem:

-rwxrwxr-- 1 root root 745032 Dec 10 18:45 coduo_lnxded

That means you can read the file, but not execute it, as you aren't root or in the root group.

To fix this (assuming you have root access), as root (although you could also use sudo), run
# chmod a+x coduo_lnxded
to give everyone, including yourself, execute permissions,
or you could instead run
# chgrp gn10 coduo_lnxded
to change the file's group to yours, which would allow your to execute it. You should then be able to execute it.

Without these modifications you could run the program as root, but that is probably inadvisable.

If the filesystem is read-only, or doesn't store file permissions, this might not work....
utrrrongeeb formerly lecaro
Art #429775 on 'Etch' 4.0r0
User avatar
utrrrongeeb
 
Posts: 255
Joined: 2006-05-14 09:48
Location: Eastern Canada


Return to Beginners Questions

Who is online

Users browsing this forum: 4D696B65 and 7 guests

fashionable