# Serious bug (overwrites all /usr/bin permissions) with the Debian-based install script

**URL:** <https://discourse.nodered.org/t/serious-bug-overwrites-all-usr-bin-permissions-with-the-debian-based-install-script/52237>\
**Category:** General\
**Created:** [15 October 2021 00:57 UTC](https://discourse.nodered.org/t/serious-bug-overwrites-all-usr-bin-permissions-with-the-debian-based-install-script/52237 "2021-10-15T00:57:17Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![6i6i](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/6i6i/32/52639_2.png) [@6i6i](https://discourse.nodered.org/u/6i6i)\
**Post date:** [14 December 2021 13:37 UTC](https://discourse.nodered.org/t/serious-bug-overwrites-all-usr-bin-permissions-with-the-debian-based-install-script/52237/43 "2021-12-14T13:37:37Z")

</div>

Thank you for the answer.

At first I have to say, that everything was working before on bullseye with old node red 1.X. After I started the upgrade script it didn't launch as it said that "Nodejs 10 too old and new version not specified - exiting".  
So I launched the script with the command line option to force install nodejs 16.  
During the installing of this it screwed up the file permissions in /usr/bin.  
All files were "owned" by the uid 1001 which does not exist at all on my system (user pi has uid 1000).

---

<div class="post-metadata">

**Author:** ![6i6i](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/6i6i/32/52639_2.png) [@6i6i](https://discourse.nodered.org/u/6i6i)\
**Post date:** [15 December 2021 12:47 UTC](https://discourse.nodered.org/t/serious-bug-overwrites-all-usr-bin-permissions-with-the-debian-based-install-script/52237/44 "2021-12-15T12:47:29Z")

</div>

As i upgraded another system today I used nodejs 12. This worked without the problem that the permissions were messed up.

---

<div class="post-metadata">

**Author:** ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)\
**Post date:** [23 December 2021 19:00 UTC](https://discourse.nodered.org/t/serious-bug-overwrites-all-usr-bin-permissions-with-the-debian-based-install-script/52237/45 "2021-12-23T19:00:40Z")

</div>

> [@Colin](#):
>
> If you run the standard install script it should sort that out, I think.

So I thought that would be the case, but I've recently updated 2 of my Pi Zero W's and had this problem again.

I also noticed someone else with the same problem (On a Pi Zero) on Reddit: [Can't start with node-red-start, but works with node-red? : nodered](https://old.reddit.com/r/nodered/comments/rmvhav/cant_start_with_noderedstart_but_works_with/)

I just run:

```auto
sudo ln -s /opt/nodejs/lib/node_modules/node-red/bin/node-red-pi /usr/bin/node-red-pi

```

to fix it, but it may be worth looking into for less experienced users.

I am not experiencing this problem on my Pi 4 or Desktop that have Node-red installed. It seems to be a problem only with armv6 devices.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 February 2022 19:01 UTC](https://discourse.nodered.org/t/serious-bug-overwrites-all-usr-bin-permissions-with-the-debian-based-install-script/52237/46 "2022-02-21T19:01:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/serious-bug-overwrites-all-usr-bin-permissions-with-the-debian-based-install-script/52237.md?page=2)
