Add sudo rule

This commit is contained in:
josef 2022-12-27 00:31:53 +08:00 committed by GitHub
parent 8d205aa7f8
commit 3bf118a62c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,10 @@ If -s and -c are specified, -c takes priority
/usr/local/bin/backlightctl -s <your_preferred_brightness>
```
- (doas) add the following to `/etc/doas.conf`:
- I don't know the equivalent sudo rule for this
```
permit nopass :wheel as root cmd backlightctl
```
- (sudo) add the following to `/etc/sudoers` (using `visudo`):
```
%wheel ALL=(ALL:ALL) NOPASSWD: /usr/local/bin/backlightctl
```