# Should I install and/or run Node-RED with an admin account? (SUDO)

**URL:** https://discourse.nodered.org/t/should-i-install-and-or-run-node-red-with-an-admin-account-sudo/82402
**Category:** FAQs
**Tags:** security
**Created:** [27 October 2023 16:13 UTC](https://discourse.nodered.org/t/should-i-install-and-or-run-node-red-with-an-admin-account-sudo/82402 "2023-10-27T16:13:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [27 October 2023 16:13 UTC](https://discourse.nodered.org/t/should-i-install-and-or-run-node-red-with-an-admin-account-sudo/82402/1 "2023-10-27T16:13:56Z")

</div>

You MAY _install_ Node-RED using elevated privileges (e.g. using `sudo` on a Linux system) - this is generally required if installing as a "global" `node-red install -g ....`. Which many people do.

You **should NOT** _run_ Node-RED using a privileged account (e.g `root` on Linux systems). Since this is very insecure and will also almost certainly cause you many issues later on.

* * *

For a low security installation, you might install globally using elevated privileges and run using the same account as you usually log in with.

For a production system, it is better to install into a local folder under a dedicated user id and group which you use to run the service. This makes it easier to keep Node-RED isolated from the rest of the server and is the same approach used for web servers and other microservice architectures.

For even higher security, consider installing locally using a semi-privileged account and run using a low-privilege account. This helps ensure separation of the service from the OS and separation of what a user can do from the service.

---

<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: [26 November 2023 16:14 UTC](https://discourse.nodered.org/t/should-i-install-and-or-run-node-red-with-an-admin-account-sudo/82402/2 "2023-11-26T16:14:19Z")

</div>

This topic was automatically closed after 30 days. New replies are no longer allowed.
