[outreachy] Permission error while setting up Suricata
Shivani Bhardwaj
sbhardwaj at openinfosecfoundation.org
Thu Mar 14 08:07:37 UTC 2019
Hi, Megha!
On Thu, Mar 14, 2019 at 12:40 AM megha Varshney via Outreachy
<outreachy at lists.openinfosecfoundation.org> wrote:
>
> Greetings!
> I got the below error when I tried setting up suricata.
>
> 14/3/2019 -- 00:34:40 - <Warning> -- No suricata application binary found on path.
>
Did you install Suricata first as mentioned in the step by step guide
on this project's page on Outreachy website?
> 14/3/2019 -- 00:34:40 - <Info> -- Using default Suricata version of 4.0.0
>
> 14/3/2019 -- 00:34:40 - <Warning> -- Cache directory does not exist and could not be created. /var/tmp will be used instead.
>
> 14/3/2019 -- 00:34:40 - <Info> -- No sources configured, will use Emerging Threats Open
>
> 14/3/2019 -- 00:34:40 - <Info> -- Last download less than 15 minutes ago. Not downloading https://rules.emergingthreats.net/open/suricata-4.0.0/emerging.rules.tar.gz.
>
> 14/3/2019 -- 00:34:40 - <Warning> -- No distribution rule directory found.
>
> 14/3/2019 -- 00:34:43 - <Info> -- Loaded 26883 rules.
>
> 14/3/2019 -- 00:34:43 - <Info> -- Disabled 0 rules.
>
> 14/3/2019 -- 00:34:43 - <Info> -- Enabled 0 rules.
>
> 14/3/2019 -- 00:34:43 - <Info> -- Modified 0 rules.
>
> 14/3/2019 -- 00:34:43 - <Info> -- Dropped 0 rules.
>
> 14/3/2019 -- 00:34:43 - <Info> -- Enabled 188 rules for flowbit dependencies.
>
> 14/3/2019 -- 00:34:43 - <Info> -- Creating directory /var/lib/suricata/rules.
>
> 14/3/2019 -- 00:34:43 - <Error> -- Failed to create directory /var/lib/suricata/rules: [Errno 13] Permission denied: '/var/lib/suricata/rules'
>
For permission errors, the easy way out is to run commands with sudo.
The preferable way however is the one mentioned here:
https://suricata-update.readthedocs.io/en/latest/quickstart.html#directories-and-permissions
> Please help!
> Regards,
> Megha Varshney
> _______________________________________________
> Outreachy mailing list
> Outreachy at lists.openinfosecfoundation.org
> https://lists.openinfosecfoundation.org/listinfo/outreachy
--
Shivani
More information about the Outreachy
mailing list