Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mkdir: cannot create directory ‘/usr/local/etc/reaver’: Permission denied

I am trying to install reaver and I am stuck at a point were it says to install make.

When I enter command make install the following message appears:

rm -f /usr/local/bin/reaver /usr/local/bin/wash /usr/local/bin/walsh
if [ ! -d /usr/local/etc/reaver ]; 
then 
      mkdir -p /usr/local/etc/reaver;
fi

mkdir: cannot create directory ‘/usr/local/etc/reaver’: Permission denied Makefile:88: recipe for target 'install' failed make: *** [install] Error 1

How can i solve this?

like image 429
nshr Avatar asked Jul 22 '16 10:07

nshr


2 Answers

Check whether your user has permission on that path. OR try with root user(not recommended) OR try with sudo make install

like image 135
Manthan Tilva Avatar answered Oct 26 '22 05:10

Manthan Tilva


First, you have to allow permission to execute that file. chmod +x filename.run and try to run using the root user. enter image description here

like image 1
Prathamesh More Avatar answered Oct 26 '22 04:10

Prathamesh More