Update gpio.md (#838)

* Update gpio.md

Fixed the formatting to be included in the bubble

* Update gpio.md

Adding more examples for clarity
This commit is contained in:
arch1mede 2022-10-25 07:20:55 -07:00 committed by GitHub
parent c2c9d39ba6
commit d362ffa0e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 7 deletions

View File

@ -301,10 +301,18 @@ kvmd
Commands are executed from the user `kvmd`. If you want to run the command as root, then you need to configure `sudo`. Example of the `/etc/sudoers.d/custom_commands`:
Granular example
```sudoers
kvmd ALL=(ALL) NOPASSWD: /usr/bin/reboot
```
NON Granular example (Captures ALL commands)
```sudoers
kvmd ALL=(ALL) NOPASSWD: ALL
```
Example of the `/etc/kvmd/override.yaml`:
```yaml