# File permissions are all wrong

**URL:** <https://forums.ankiweb.net/t/file-permissions-are-all-wrong/8119>\
**Category:** Development\
**Created:** [March 8, 2021, 4:22pm UTC](https://forums.ankiweb.net/t/file-permissions-are-all-wrong/8119 "2021-03-08T16:22:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hyper](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@Hyper](https://forums.ankiweb.net/u/Hyper)\
**Post date:** [March 8, 2021, 4:22pm UTC](https://forums.ankiweb.net/t/file-permissions-are-all-wrong/8119/1 "2021-03-08T16:22:19Z")

</div>

I took a closer look in the new tar.bz2 file.  
When extracted on Linux, all file permissions are wrong.  
Library files shouldn’t be executable. The x bit shouldn’t be set.  
The same applies to html files.

But in your tar archive most of your data and library files have an x bit set:

```auto
-rwxr-xr-x 

```

correct would be

```auto
-rw-r--r--

```

You have even set the x bit for a simple Text file.

```auto
-rwxr-xr-x 1 XXXXXX XXXXXX 48 Feb 7 04:39 buildinfo.txt

```

Only files like executables, bash scripts etc. should have the x bit set.

---

<div class="post-metadata">

**Author:** ![Hyper](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@Hyper](https://forums.ankiweb.net/u/Hyper)\
**Post date:** [March 13, 2021, 3:31pm UTC](https://forums.ankiweb.net/t/file-permissions-are-all-wrong/8119/2 "2021-03-13T15:31:56Z")

</div>

Dear Anki Developer,

Is it so difficult for you to fix your stuff?

Just do a:

```auto
find anki-2.1.42-linux -type f -print0 | xargs -0 chmod 644 
chmod 700 anki-2.1.42-linux/*.sh
chmod 700 anki-2.1.42-linux/bin/Anki 
chmod 700 anki-2.1.42-linux/bin/PyQt5/Qt/libexec/QtWebEngineProcess 
```

to fix the permissions.  
And then repackage the anki-2.1.42-linux.tar.bz2 file with the according tar command to store permissions.

---

<div class="post-metadata">

**Author:** ![Hyper](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@Hyper](https://forums.ankiweb.net/u/Hyper)\
**Post date:** [June 16, 2021, 2:17pm UTC](https://forums.ankiweb.net/t/file-permissions-are-all-wrong/8119/3 "2021-06-16T14:17:06Z")

</div>

This error is still valid in Anki version 2.1.44.

Please fix your packages.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 3:18am UTC](https://forums.ankiweb.net/t/file-permissions-are-all-wrong/8119/4 "2023-05-01T03:18:08Z")

</div>

Closed on May 1, 2023, 3:18am UTC


