Run commands in greengrass component as sudo

0

How do I run commands which need to be run as the sudo user on AWS Greengrass V2 ?

Excerpt from the component recipe below:

    Lifecycle:
      Run:   
        Script: "sudo jetson_clocks"
        RequiresPrivelege: true

but this still doesn't work.

質問済み 1年前713ビュー
1回答
1

Hello!

Please use RequiresPrivilege (the spelling is slightly different than in the provided snippet). Also, when using RequiresPrivilege, sudo isn't needed in the Script, since the command will run as root.

Lifecycle:
      Run:   
        Script: "jetson_clocks"
        RequiresPrivilege: true
AWS
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ