I am executing the following command from my Linux machine.
cp -r hwweb-ws-5.0 /home/tomcat/hwweb-1/webapps/
It's displaying the following error:
cp: cannot create directory `/home/tomcat/hwweb-1/webapps/hwweb-ws-5.0': Permission denied
Try
sudo cp -r hwweb-ws-5.0 /home/tomcat/hwweb-1/webapps/
and then type your super user password.
The other way is to change the owner or add your user to the owner group of the /home/tomcat/hwweb-1/webapps/
directory. Obviously, your user doens't have right to write in this directory now.
ls -l /home/tomcat/hwweb-1/webapps
" and then switch to that user by using e.g. "su webapps
". After that try copying the folder again and don't forget to switch back to your user by hitting "exit
" in the command line.