Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16-Feb-2008, 08:50
Amitav
Guest
 
Posts: n/a
Default

i have tried to compile a .c file. it works fine generating a.out. but when i type
./a.out
it shows "Permission denied". i tried using the root user but the case is same. any ideas?
  #2 (permalink)  
Old 16-Feb-2008, 15:27
ken_yap
Guest
 
Posts: n/a
Default

Are you trying to compile in a non-Linux partition?
  #3 (permalink)  
Old 16-Feb-2008, 21:11
AndrewTheArt
Guest
 
Posts: n/a
Default

Not sure if I'm on the right track here but you might make it executable ...

Code:
chmod +x a.out
  #4 (permalink)  
Old 18-Feb-2008, 08:20
Amitav
Guest
 
Posts: n/a
Default

Quote:
Are you trying to compile in a non-Linux partition?
[/b]
yeah, i was doing that. i tried to move the files to my home partition and now they work fine. but i would like to know how i can run them from a non-Linux partition.

thanks for the help.
  #5 (permalink)  
Old 18-Feb-2008, 08:36
ken_yap
Guest
 
Posts: n/a
Default

You have to mount with the exec option. You may not have explicitly specified noexec, but some other mount options imply noexec so you need to put exec after that to override. Notably the user option. See man mount.
  #6 (permalink)  
Old 18-Feb-2008, 08:48
Amitav
Guest
 
Posts: n/a
Default

Quote:
You have to mount with the exec option. You may not have explicitly specified noexec, but some other mount options imply noexec so you need to put exec after that to override. Notably the user option. See man mount.
[/b]
Thanks. now i understood why it said permission denied.
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2