This is what I'm seeing:
mvn
bash: /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn: Permission denied
my bash file:
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
ls command:
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
file command:
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
Your permission shows that you can't execute that file. Modify permissions for that file. If you want all the users in the machine should be able to execute that file, then do this :
chmod a+x /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn
/usr/local/apache-maven/apache-maven-3.1.1/bin/mvn
does not have the execute permission. This should be able to fix it:
chmod a+x /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With