LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 07-16-2012, 09:21 AM   #1
nadia_kh
Member
 
Registered: May 2012
Posts: 30

Rep: Reputation: Disabled
Question permission denied when running program


hello
i use the TraNSv1.2. The installation is correct. when i run the program the permission denied message is appeared!!!!!

i log in as root but the problem is not solved

Do you help me please?

thanks

the error is
Quote:
java.io.IOException: Cannot run program "/home/nadia/work/ns-allinone-2.35/ns-2.35": java.io.IOException: error=13, Permission denied
 
Old 07-16-2012, 11:22 AM   #2
richardg1952
LQ Newbie
 
Registered: May 2004
Location: Beaverton, OR
Distribution: Fedora Core 2
Posts: 7

Rep: Reputation: 0
if root doesn't have permission then it's likely the execute bit(s) are not set.
do:
ls -l /home/nadia/work/ns-allinone-2.35/ns-2.35
and post the results.
What is TraNS?
 
Old 07-16-2012, 12:48 PM   #3
LceeL
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Rep: Reputation: 0
set permissions

Try setting the permissions on that program to 777 - as root, chmod 777 </PATH/program name>. If that works you can then change permissions, later, to suit your environment better.

Lou
 
Old 07-16-2012, 02:30 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
no need to go so crazy loose with permissions. a simple chmod +x /path/to/foo will do.
 
Old 07-16-2012, 04:08 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

https://www.linuxquestions.org/quest...s2-4175416578/
http://www.linuxquestions.org/questi...-a-4175416736/
 
  


Closed Thread


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
Permission denied when compiling C program mominmyheart Programming 9 12-02-2009 05:08 PM
Unable to run program, Permission denied smartgupta Solaris / OpenSolaris 3 08-11-2009 01:49 AM
Permission denied after running xwmconfig AtomicAmish Slackware 14 02-14-2008 08:43 AM
bash: ./program: permission denied Cinematography Linux - General 3 10-01-2007 08:18 PM
Permission Denied when running a program? tolvar Linux - Newbie 1 09-07-2005 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:44 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration