[Mono-aspnet-list] could not execute linux shell script from asp.net application

Sean Beeson seanbeeson at gmail.com
Mon Jun 15 04:16:07 EDT 2009

> linux-test:~ # su -
> linux-test:~ # sudo -u wwwrun -s
> wwwrun at linux-test:/root> ./morning
> bash: ./morning: Permission denied
> wwwrun at linux-test:/root>
> i am getting "Permission denied"..   can you please explain me the reason
> and the solution for it?

As root do a ls -al on the directory you are trying to write the file in and
you will most likely see that the wwwrun user does not have permission to
write in that directory. A review of or introduction to Unix directory and
file permissions should help you after this. The wwwrun needs to be able to
write in the directory and have the right to exacute the script. Here is
something you can read on those permissions:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20090615/a1ab26d0/attachment-0001.html 

More information about the Mono-aspnet-list mailing list