> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/andoid-shou-ji/termux/nodered-cun-qu-bao-hu.md).

# Node-Red存取保護

su**do npm install -g** --unsafe-perm **node-red-admin**<br>

\
\
\
**產生 password hash**\
**要生成合適的密碼hash，可以使用node-red-admin命令行工具**\
**node-red-admin hash-pw**

```
node-red-admin hash-pw 
Password: 
```

**node-red-admin list**

```
cd ~/.node-red/
nano settings.js
adminAuth: {
    type: "credentials",
    users: [{
        username: "admin",
        password: "hash過的密碼",
        permissions: "*"
    }]
}
```

![](/files/-LzntN27fQ2-746detCj)

<br>
