|
||||||
| 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 |
|
|||
|
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? |
|
|||
|
Are you trying to compile in a non-Linux partition?
|
|
|||
|
Not sure if I'm on the right track here but you might make it executable ...
Code:
chmod +x a.out |
|
|||
|
Quote:
thanks for the help. |
|
|||
|
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.
|
|
|||
|
Quote:
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|