I changed the user and group ownership of /home/ubuntu/app to go, although 777 should have sufficed for testing purposes.
When I su to user go, I am able to view /home/ubuntu/app, and also touch foo.txt in /home/ubuntu/app . I
go@app:/home/ubuntu$ cd app
go@app:/home/ubuntu/app$ touch foo.txt
go@test-app:/home/ubuntu/app$ ls -la
total 8
drwxr-xr-x 2 go go 4096 Jun 29 20:10 .
drwxr-x--- 7 ubuntu ubuntu 4096 Jun 29 20:09 ..
-rw-rw-r-- 1 go go 0 Jun 29 20:10 foo.txt
go@app:/home/ubuntu/app$ rm foo.txt
go@app:/home/ubuntu/app$ exit
Go agent is running as go:
go 634 0.0 0.2 16452 2464 ? Sl Jun24 4:09 /usr/share/go-agent/bin/.
The go agent is still unable to copy a file into /home/ubuntu/app , or even cd into /home/ubuntu/app , with any level of permission (777, changing it to go, etc)