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

nshr picture nshr · Jul 22, 2016 · Viewed 11.1k times · Source

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?

Answer

Manthan Tilva picture Manthan Tilva · Jul 22, 2016

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