title: maven: bash mvn permission denied
body: <p>This is what I'm seeing:</p>
  
  <pre><code>mvn
  bash: /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn: Permission denied
  </code></pre>
  
  <p>my bash file:</p>
  
  <pre><code>if [ -f /etc/bashrc ]; then
      . /etc/bashrc
  fi
  
  # User specific aliases and functions
  
  JAVA_HOME=/usr/java/default
  export JAVA_HOME
  
  HADOOP_HOME=/usr/share/491s14/hadoop
  export HADOOP_HOME
  
  PATH=$PATH:$HOME/bin:$HADOOP_HOME/bin   
  export PATH
  
  export M2_HOME=/usr/local/apache-maven/apache-maven-3.1.1
  export M2=$M2_HOME/bin
  PATH=$M2:$PATH
  </code></pre>
  
  <p>ls command:</p>
  
  <pre><code>ls -l /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn
  -rw-r--r--. 1 root root 5806 Feb 21 11:33 /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn
  </code></pre>
  
  <p>file command:</p>
  
  <pre><code>file /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn
  /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn: POSIX shell script text executable
  </code></pre>