I am following this guide.
I am doing this:
cd /opt
git clone
cd metasploit-frameworkWhen I am doing :
git clone I am getting the following error :
fatal: could not create work tree dir 'metasploit-framework'.: Permission denied 1 2 Answers
You are trying to git clone into the /opt directory and don't have privileges.
Use:
sudo git clone Alternately git clone into your home directory then if you need to make the executable or install just invoke your superuser privileges then with sudo.
Run the following in the terminal to open a new terminal session as root, so that you get permission to run the commands:
sudo su