thinkst / opencanary

Modular and decentralised honeypot
http://opencanary.org
BSD 3-Clause "New" or "Revised" License
2.28k stars 357 forks source link

Use sudo only if not running as root #180

Closed vin01 closed 2 years ago

vin01 commented 2 years ago

sudo can be skipped in some cases, like when running in a container as root.

Might address https://github.com/thinkst/opencanary/issues/133

vin01 commented 2 years ago

I have updated it @jayjb. Please review.

jayjb commented 2 years ago

Hi @vin01,

Thanks for contributing to the Opencanary project. Please email me at jay [at] thinkst [dot] com please.