如何允许访问我的 config.yaml 文件? (Raspbian,Azure 物联网边缘)

How to permit access to my config.yaml file? (Raspbian, Azure IoT Edge)

我一直在浏览 Azure IoT Edge 文档以使用 Raspbian Stretch 将 Raspberry Pi 4 连接到 Azure 云。 IoT Edge 守护程序是 'active (running)',但是当我 运行 'iotedge check' 时,出现以下错误:

pi@raspberrypi:~$iotedge check --verbose
Configuration checks
--------------------
x config.yaml is well-formed - Error
   Could not open file /etc/iotedge/config.yaml. You might need to run this command as a root.
       caused by: Permission denied (os error 13)

0 check(s) succeeded.
1 check(s) raised errors.

我对此很陌生,所以可能犯了一个明显的错误,但在 google、Azure 或 Stack Overflow 上找不到任何适用的内容。任何帮助将不胜感激!

尝试使用 运行 命令,因为该命令需要权限才能打开文件:

sudo iotedge check