Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to run the statistics software Stata 11 on Ubuntu 11.10. as a regular user and I get the following error message:

bash: xstata: Permission denied

The user priviledges seem ok to me as a linux newbie, tough:

-rwxr-x--x 1 root root 16177752 2009-08-27 16:29 xstata*

I would very much appreciate some advice on how to resolve this issue!

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Since you are trying to run xstata as a regular user (in this case regular means not user root and group membership does not contain root). You do not have right to read the file.

Let me quote (source):

"Execute" means that this file can be executed as a program. So if the file were a shell script or valid compiled executable (ELF format, etc) named program_name, you could run ./program_name or, if this directory were in your path, just program_name. Without the execute bit, you'd need to type sh program_name for a shell script, perl program_name for a perl script, etc.

So you either need to be part of the root group or add read permission to others. Eg.:

sudo chmod o+r xstata
share|improve this answer
    
Thank you for your prompt reply. I followed your advice but now I get the following error message: "bash: .: xstata: cannot execute binary file". Apparently this means that bash doesn't know how to execute this file. Interestingly, the file can now be executed from Thunar. But how can I do this from bash? –  ddd Nov 4 '11 at 9:18
    
Could you run file xstata and post the output? This command identifies the file type. Eg.: pastie.org/2808999 –  lgarzo Nov 4 '11 at 9:28
    
This command outputs the following: xstata: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.0, stripped Any idea how to run this? –  ddd Nov 4 '11 at 9:44
    
Now please run uname -a to identify your system architecture, and post the output. –  lgarzo Nov 4 '11 at 9:50
    
Happy to do so: Linux dr 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux –  ddd Nov 4 '11 at 9:52
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.