Quote:
Originally Posted by alphakg
I am using unix from rootshell.be using puTTY on windows xp.
$ ls -l
total 104
-rwxr-xr-x free 11595 May 23 00:10 a.out
-rwxr-xr-x free 11595 May 23 17:57 hello2
-rw-r--r-- free 73 May 22 03:09 hello2.c
$ cc -o hello2 hello2.c
$ hello2
bash: ./hello2: Permission denied
$ ./hello2
bash: ./hello2: Permission denied
$ a.out
bash: ./a.out: Permission denied
alphakg, I don't see any thing wrong on the way you compile and try to run your program; everything looks fine. Note that you are trying to run the executable on a unix platform that is offered to public. As far as I know, the sys admins on such systems tend to restrict public running some executables on their systems. Try contacting your system administrator and bringing up your problem to him...
WAIT.. I guess I figured that out..
See what I found on the
http://rootshell.be website (this is the unix account you're using):
What we do
NOT allow?
* IRC bots, proxies;
* Background processes;
* Spam;
* Storage of illegal material;
*
Compilation/execution of your own application
This is why your program is not executing, because they restricted their system, as I mentioned above..
Do you not have access to any other unix account; such as one from your school? Or, you might also want to install Linux on one of your partitions..