I have a folder named "webapps" with the following permissions:
$ ls -al /opt/tomcat $ drwxr-x--- 7 tomcat root 4096 Aug 15 22:06 webapps
I have a user which is part of the "tomcat" group:
$ groups $ hamburgers sudo tomcat
When I try to scp a file from my local machine to the /webapps folder on my server, I get a permission denied error:
scp -r /mymachine/test.war email@example.com:"/opt/tomcat/webapps/test.war" scp: /opt/tomcat/webapps/test.war: Permission denied
I thought since user "hamburgers" was part of the "tomcat" group, they'd be able to do this. I can scp the same way to other folders on the server.
How could I change the permissions to get this to work?