Im using Amazon Linux and running a script through a Jenkins job, including this linetouch /usr/java/jboss/standalone/deployments/myproject.war.dodeploywhich results in the error touch: cannot touch /usr/java/jboss/standalone/deployments/myproject.war.dodeploy: Permission denied  I thought I had the perms and groups set properly, so I output those in my script as well.  But I cant see why things are falling apart.  Below is the output.  What else do I need to do to get my touch command to work?+ whoamijboss+ groups jbossjboss : jboss evotext+ ls -al /usr/java/jboss/standalone/deployments/total 20drwxrwxr-x  4 deploy evotext 4096 Apr 23 18:18 .drwxr-xr-x  8 jboss  evotext 4096 Jun 24  2013 ..drwxrwxr-x 11 jboss  evotext 4096 Apr 23 18:23 myproject.wardrwxrwxr-x  9 deploy evotext 4096 Apr 22 19:21 jenkins.war-rwxrwxr-x  1 deploy evotext   11 Apr 22 19:21 jenkins.war.deployed+ touch /usr/java/jboss/standalone/deployments/myproject.war.dodeploytouch: cannot touch /usr/java/jboss/standalone/deployments/myproject.war.dodeploy: Permission deniedBuild step 'Execute shell' marked build as failure
Getting Permission denied when trying to create a file despite correct permissions
linux;permissions;touch;amazon