I am running springsource framework in ubuntu 10.01. In my home folder, I have installed springsource IDE. I have my tomcat6 appserver in the /usr/share/tomcat6
. While executing a sample project springapp, I have created the springapp dir in /users/share/tomcat6/webapps
/ folder using sudo as I am unable to do it directly.
On running the ant deploy or ant deploywar command, I am unable to copy the sample file -index.jsp from my workspace in springsource IDE to springapp dir in /usr/share/tomcat6/webapps
as I am getting the error permission denied while copying the .jsp file.
Can anybody please provide suggestion as to how to overcome this issue?
Regards
Best Answer
You do not own the files, neither do you have the permission to write to
/usr/share/tomcat6/webapps
. The following command will change the ownership of the webapps folder and files recursively toyourusername
. That enables useryourusername
to write to that directory.