Fix OS error: [Errno 13] Permission denied: ‘/etc/setoolkit/’

Kali Linux 2.0  amazing with alot of tools you may need and you may not !
once you fire up your Kali Linux you feel  like you just entered the paradise of  Penetration Testing
it may not be the best Penetration Testing Distributions for you but it's the best of the best for a lot .
So let's start , the error we will try to fix today is

File “./setoolkit”, line 24, in <module>
File “/usr/lib/python2.7/”, line 157, in makedirs
mkdir(name, mode)
OS error: [Errno 13] Permission denied: ‘/etc/setoolkit/’

I got this error when i tried to open Social engineering toolkit located here:
Applications > Exploitation > Social engineering toolkit

There is nothing wrong with Python there is nothing wrong with setoolkit
The problem is with the user and the Permission, you may be using Administrator account but yet it's not root ! in fact you don't have real root access even when sudo work most of the time !

to fix this error we have to gain our root access again To do that
go to boot menu and select the “recovery mode.”
use passwd command to set new credentials to your root account.
Type : passwd and hit  Enter
it will ask for password type your password ( the password here it may be toor  )
it will ask for it again so you know type it again and hit  Enter
restart Kali Linux when you login make sure you login with
user : root
pass : toor or the password you chose
open Social engineering toolkit  and it should work :)
Social engineering toolkit

but if you try to open Social engineering toolkit from your username you will get a massage like this
Traceback (most recent call last):
  File "./setoolkit", line 101, in <module>
  File "/usr/share/set/src/core/", line 95, in update_config
    new_config = file("/etc/setoolkit/", "w")
IOError: [Errno 13] Permission denied: '/etc/setoolkit/'
Permission denied: '/etc/setoolkit/
To fix that
just login with username: root

leave a comment let me know did this work for you ? and if not tell me so we can try to fix it together :)

how to fix [Errno 13] Permission denied: ‘/etc/setoolkit/’ Kali linux


Post a Comment

  1. Traceback (most recent call last):
    File "./setoolkit", line 34, in
    File "/usr/lib/python2.7/", line 157, in makedirs
    mkdir(name, mode)
    OSError: [Errno 13] Permission denied: '/etc/setoolkit/'

    how to fix this program



Author Name

{picture#YOUR_PROFILE_PICTURE_URL} YOUR_PROFILE_DESCRIPTION {facebook#} {twitter#} {google#} {pinterest#} {youtube#}

Contact Form


Email *

Message *

Powered by Blogger.