title: Set Node-red password in root mode
body: <p>I have a node-red flow in my raspberry pi 3 for which I'd like to set a user and password in root mode, but haven't succeeded yet. </p>
  
  <p>So far I've managed to set it as a regular user as stated in their own security website (<a href="https://nodered.org/docs/security" rel="nofollow noreferrer">https://nodered.org/docs/security</a>), but I need to run it as admin in order to save some stuff and found out there's no guidance for such scenario 
  (on they way found out there are two versions of Node-red in the raspberry pi, one for 'sudo start-node-red' and another one for 'start-node-red', I'm interested on the first case) </p>
  
  <p>The one I've managed for the plain user would be editing the settings.js as follows:</p>
  
  <pre><code>adminAuth: {
      type: "credentials",
      users: [{
          username: "admin",
          password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",
          permissions: "*"
      }]
  }
  </code></pre>
  
  <p>Has anyone managed to do so? </p>