Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am following this guide.

I am doing this:

cd /opt
git clone https://github.com/rapid7/metasploit-framework.git
cd metasploit-framework

When I am doing :

git clone https://github.com/rapid7/metasploit-framework.git

I am getting the following error :

fatal: could not create work tree dir 'metasploit-framework'.: Permission denied
share|improve this question
1  
Link for the following guide is not here. –  user224082 Dec 25 '13 at 9:30

2 Answers 2

up vote 0 down vote accepted

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
share|improve this answer

You are trying to git clone into the /opt directory and don't have privileges.

Use:

sudo git clone https://github.com/rapid7/metasploit-framework.git

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.