# Suricata-update fails with permissions error to temp file

**URL:** <https://forum.suricata.io/t/suricata-update-fails-with-permissions-error-to-temp-file/4715>\
**Category:** Help\
**Tags:** suricata-update\
**Created:** [June 20, 2024, 1:44am UTC](https://forum.suricata.io/t/suricata-update-fails-with-permissions-error-to-temp-file/4715 "2024-06-20T01:44:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimonFB](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@SimonFB](https://forum.suricata.io/u/SimonFB)\
**Post date:** [June 20, 2024, 1:44am UTC](https://forum.suricata.io/t/suricata-update-fails-with-permissions-error-to-temp-file/4715/1 "2024-06-20T01:44:27Z")

</div>

Have just installed Surcata version 7.0.5 RELEASE  
On Mint Linux version = Linux hostname 5.15.0-112-generic #122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024 x86\_64 x86\_64 x86\_64 GNU/Linux  
Followed the installation guide for Ubuntu to install using ‘apt’  
Configured and running using a ‘suricata’ user created for the purpose, looks to be running fine.

When I run suricata-update it errors out with permissions denied to a temp file under /tmp  
I can see from the listing that a temporary folder is created under /tmp while suricata-update is running, however the name of that folder does not match the folder it is looking for.

The error is as follows

```auto
20/6/2024 -- 11:40:59 - <Info> -- Writing /var/lib/suricata/rules/classification.config
20/6/2024 -- 11:40:59 - <Info> -- Testing with suricata -T.
20/6/2024 -- 11:40:59 - <Error> -- Error opening file: "/tmp/tmp2ylle1hf/fast.log": Permission denied
20/6/2024 -- 11:40:59 - <Error> -- output module "fast": setup failed
20/6/2024 -- 11:40:59 - <Error> -- Suricata test failed, aborting.
20/6/2024 -- 11:40:59 - <Error> -- Restoring previous rules.

```

The folder created, then deleted, in /tmp is called

```auto
drwx------ 3 root root 4096 Jun 20 11:40 tmpdccmw1x2suricata-update/

```

The folder is created and removed to quickly for me to see what, if anything, is in it

Any suggestions or help would be appreciated

---

<div class="post-metadata">

**Author:** ![Jeff\_Lucovsky](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/jeff_lucovsky/32/11_2.png) [@Jeff\_Lucovsky](https://forum.suricata.io/u/Jeff_Lucovsky)\
**Post date:** [June 21, 2024, 9:27am UTC](https://forum.suricata.io/t/suricata-update-fails-with-permissions-error-to-temp-file/4715/2 "2024-06-21T09:27:54Z")

</div>

What command line did you use to invoke `suricata-update`?
