Kali Linux is amazing with a lot 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
File “./setoolkit”, line 24, in 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
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 🙂
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 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'
To fix that
just login with username: root
leave a comment to let me know did this work for you? and if not tell me so we can try to fix it together 🙂