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 .
setoolkit-Permission-denied
So let's start , the error we will try to fix today is

File “./setoolkit”, line 24, in <module>
os.makedirs(“/etc/setoolkit/”)
File “/usr/lib/python2.7/os.py”, 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
Kali_setoolkit  

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>
    update_config()
  File "/usr/share/set/src/core/update_config.py", line 95, in update_config
    new_config = file("/etc/setoolkit/set_config.py", "w")
IOError: [Errno 13] Permission denied: '/etc/setoolkit/set_config.py'
Permission denied: '/etc/setoolkit/set_config.py
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

Labels:

Post a Comment

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

    how to fix this program

    ReplyDelete

[blogger]

Author Name

{picture#YOUR_PROFILE_PICTURE_URL} YOUR_PROFILE_DESCRIPTION {facebook#https://www.facebook.com/wTsXDev} {twitter#https://twitter.com/wTsDev} {google#https://plus.google.com/u/0/+AnonSalame} {pinterest#https://www.pinterest.com/Thexwts/} {youtube#https://www.youtube.com/channel/UCg2fUa8Yp-aWDCJYQTVHmBg}

Contact Form

Name

Email *

Message *

Powered by Blogger.