mushorg / conpot

ICS/SCADA honeypot
GNU General Public License v2.0
1.21k stars 410 forks source link

Conpot can't start #502

Open opliyal3 opened 4 years ago

opliyal3 commented 4 years ago

OS: ubuntu 18.04 python3.6 I use pip install conpot, and i wanna started it

use commend: conpot, they give me some error Can't start conpot with root. Please ref user docs for more info.

use commend: conpot -f --template default, 2020-07-17 10:13:29,103 Running conpot with root. Running conpot with root isn't recommended. 2020-07-17 10:13:29,104 Privileges dropped, running as "nobody:nogroup" WARNING:root:--force option specified. Using testing configuration 2020-07-17 10:13:29,104 --force option specified. Using testing configuration ERROR:root:Template not found: default 2020-07-17 10:13:29,105 Template not found: default

use conpot -f, 2020-07-17 10:14:39,494 Running conpot with root. Running conpot with root isn't recommended. 2020-07-17 10:14:39,496 Privileges dropped, running as "nobody:nogroup" WARNING:root:--force option specified. Using testing configuration 2020-07-17 10:14:39,496 --force option specified. Using testing configuration Traceback (most recent call last): File "/root/conpot/bin/conpot", line 455, in File "/root/conpot/bin/conpot", line 236, in main PermissionError: [Errno 13] Permission denied: '/root/conpot/lib/python3.6/site-packages/conpot/templates'

How can I start conpot Thanks

gokul-lucifer commented 3 years ago

Hi @opliyal3 you have to release the permission at /root/conpot/lib/python3.6/ you can use sudo chmod -R 777 ./ on that directory then run conpot -f --template default note: you shoud not run conpot using sudo This will surely work